We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
CommonMark/spec.txt defines this punctuation set:
!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~
Regexp in commonmark.js/lib/inlines.js uses smaller character set:
!"#%&'()*,-./:;?@[\]_{}
As a result, ^_test_ is not rendered as emphasis, even though according to spec it should (and cmark renders it as an emphasis).
^_test_
$ echo '^_test_' | ./cmark/build/src/cmark <p>^<em>test</em></p> $ echo '^_test_' | ./commonmark.js/bin/commonmark <p>^_test_</p>
Original issue: markdown-it/markdown-it#380
The text was updated successfully, but these errors were encountered:
Note, fixing this will cause:
https://derp.com?_test_=1
To render as:
<p>https://derp.com?<em>test</em>=1</p>
It is 100% correct to fix the implementation so it correctly implements the spec, but the spec does do some weird things with legit URLs in the wild.
Sorry, something went wrong.
bd4efe5
No branches or pull requests
CommonMark/spec.txt defines this punctuation set:
Regexp in commonmark.js/lib/inlines.js uses smaller character set:
As a result,
^_test_
is not rendered as emphasis, even though according to spec it should (and cmark renders it as an emphasis).Original issue: markdown-it/markdown-it#380
The text was updated successfully, but these errors were encountered: