-
-
Notifications
You must be signed in to change notification settings - Fork 226
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
HTML comment handling doesn't match spec 0.31.2? #285
Comments
OK, this looks like a holdover from our old XML-ish definition of comment. |
I think cmark may also need to be fixed.
|
Yeah can do later. Do we want some additional examples in the spec as well? |
robinst
added a commit
to robinst/commonmark.js
that referenced
this issue
Mar 3, 2024
jgm
pushed a commit
that referenced
this issue
Mar 6, 2024
robinst
added a commit
to commonmark/commonmark-java
that referenced
this issue
Mar 9, 2024
Looks like commonmark.js has a bug in its handling: commonmark/commonmark.js#285
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm updating commonmark-java to version 0.31.2 of the spec and was wondering about HTML comment handling. Namely, given this spec:
I think these two should be parsed as comments:
However, with the current dingus they're not (example 1, example 2):
The reason is probably this regex:
commonmark.js/lib/common.js
Line 27 in a4d859c
I think
<!-->|<!--->|<!--.*?-->
would work as expected.The text was updated successfully, but these errors were encountered: