Skip to content

Link Reference Definition Followed by Hyphen Underline #575

@joegm

Description

@joegm

Input:

[foo]: bar
---

cmark gives me this:

$ cmark
[foo]: bar
---

<p>---</p>

This is different to the output in dingus:

<p></p>
<hr />

I'd say that this is also incorrect because of the empty paragraph, but obviously at least one of cmark/commonmark.js is doing the wrong thing here.

I'm not certain what this should render to per the spec, but I think it should be interpreted as a link reference definition followed by a thematic break, and should render as just <hr />.

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