Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider adding support for arbitrary classes when rendering for sidebar #8

Open
spladug opened this issue Nov 17, 2011 · 2 comments
Open

Comments

@spladug
Copy link
Contributor

spladug commented Nov 17, 2011

Not safe for comments, but since mods can edit CSS anyway, allowing arbitrary classes in the sidebar could be useful.

@jamt9000
Copy link

It wouldn't need to be arbitrary, just prefixed with some string to provide basic namespacing, the way flair classes are prefixed with "flair-". Then it could be safely used in comments to add custom formatting, emoticons, etc. without needing to abuse links.

@empyrical
Copy link

I'm thinking about contributing something like this so links aren't needed for custom formatting/emoticons anymore; would a syntax like this:

[Some text]{classname}

which gets rendered as:

<span class="span-classname">Some text</span>

be appropriate? I'm not sure what a good namespace would be, so I used "span-" as an example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants