Skip to content

Quotes after a link definition prevent it from parsing #281

Description

@notriddle

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

Details

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions