Skip to content

--- after a link reference definition becomes a paragraph instead of a thematic break #619

Description

@numist

A line of dashes (---) immediately following a link reference definition is rendered by cmark as a paragraph (<p>---</p>) instead of a thematic break (<hr />).

Input:

[f]:r
---

Expected:

<hr />

Got:

<p>---</p>

This is specific to ---. Other thematic breaks—***, ___, and spaced variants - - -/_ _ _—after a refdef are all correctly rendered as <hr />. The bug is also specific to a refdef preceding the dashes; every other non-paragraph block before --- yields <hr />.

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