Skip to content

Punctuation set is different from the spec #121

Closed
@rlidwka

Description

@rlidwka

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions