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).
$ 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
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