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

Section ids using a colon #2

Open
jrschumacher opened this issue Oct 3, 2011 · 4 comments
Open

Section ids using a colon #2

jrschumacher opened this issue Oct 3, 2011 · 4 comments

Comments

@jrschumacher
Copy link
Contributor

If you noticed in my pull request I am using some javascript to strip out the colon in the ids and references of the various elements. I needed to do this because the colon is used in CSS and jQuery selectors as Pseudo Class. This might be something that needs to be fixed and standardized in the future.

@jaywilliams
Copy link
Member

Would it be possible to simply escape the ID tags in jQuery, and therefore bypass the CSS parsing?

@jrschumacher
Copy link
Contributor Author

I tried to escape it, but couldn't find a way. What is your thoughts on
using a colon?

On Sun, Oct 2, 2011 at 9:27 PM, Jay Williams <
[email protected]>wrote:

Would it be possible to simply escape the ID tags in jQuery, and therefore
bypass the CSS parsing?

Reply to this email directly or view it on GitHub:
https://github.com/jaywilliams/mdocs/issues/2#issuecomment-2268277

@jaywilliams
Copy link
Member

I used the MooTools docs as a reference point, and they use the colon quite extensively in ID tags. However, I suppose, if need be, we could always modify the Markdown parser to remove the colon from the ID tag, replacing it with an underscore for example.

Does it matter to me, personally? No, not really, just as long as its rendered the same throughout.

@jrschumacher
Copy link
Contributor Author

Ok cool, I was just wondering. As of right now the javascript will strip it
out as needed.

On Mon, Oct 3, 2011 at 9:58 AM, Jay Williams <
[email protected]>wrote:

I used the MooTools docs as a reference point, and they use the colon quite
extensively in ID tags. However, I suppose, if need be, we could always
modify the Markdown parser to remove the colon from the ID tag, replacing it
with an underscore for example.

Does it matter to me, personally? No, not really, just as long as its
rendered the same throughout.

Reply to this email directly or view it on GitHub:
https://github.com/jaywilliams/mdocs/issues/2#issuecomment-2272978

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

No branches or pull requests

2 participants