-
-
Notifications
You must be signed in to change notification settings - Fork 275
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
Valid IDs #658
Comments
If we change this, I would make the ID XML-compatible so that the XML syntax of HTML5 is also supported - what do you think? |
I think that's fine. What's the implications of making it XML-compatible? I couldn't tell from the linked documentation. My understanding HTML5 basically allows any character. I assume except |
Yes, HTML5 allows any character. However, there is also an XML syntax version of HTML5 (formerly known as XHTML) which might have a problem with that (didn't find anything on that, though). The XML syntax has a special ID type with certain allowed values. I have changed kramdown to allow all characters that are also allowed for this ID type. See https://www.w3.org/TR/xml/#id and https://www.w3.org/TR/xml/#NT-Name. |
Implemented in 90954bc |
Great, thanks for your quick response! |
Hello.
HTML5 allows any character to be an ID.
So:
should be valid.
The text was updated successfully, but these errors were encountered: