Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Quotes after a link definition prevent it from parsing #281

Closed
notriddle opened this issue Feb 2, 2024 · 0 comments · Fixed by #282
Closed

Quotes after a link definition prevent it from parsing #281

notriddle opened this issue Feb 2, 2024 · 0 comments · Fixed by #282

Comments

@notriddle
Copy link
Contributor

This is a disagreement between commonmark.js and cmark-c:

[test]:example
""third

The dingus shows this

[test]:example ""third

cmark and cmark-gfm both disagree, parsing it like this:

""third

Events from pulldown-cmark:

"[~]:r\n\"\"A" -> [
  Start(Paragraph)
    Text(Borrowed("\"\"A"))
  End(Paragraph)
]

Events from commonmark.js:

"[~]:r\n\"\"A" -> [
  Start(Paragraph)
    Text(Boxed("[~]:r"))
    SoftBreak
    Text(Boxed("\"\"A"))
  End(Paragraph)
]

XML from commonmark.js:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE document SYSTEM "CommonMark.dtd">
<document xmlns="http://commonmark.org/xml/1.0">
  <paragraph>
    <text>[</text>
    <text>~</text>
    <text>]</text>
    <text>:r</text>
    <softbreak />
    <text>&quot;</text>
    <text>&quot;</text>
    <text>A</text>
  </paragraph>
</document>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant