Skip to content

Link Reference Definition Followed by Hyphen Underline #575

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 />.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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