Skip to content

[fuzz result] only four spaces trimmed after line break in link title #867

@notriddle

Description

@notriddle

Consider this markdown:

[link]: destination "
          text          "

[link]

It's another place where pulldown-cmark diverges from most other implementations. The dingus thinks there's ten spaces after the word "text", but no spaces before it. markdown-it, commonmark-hs, and GFM all seem to agree.

In other words, they all make this HTML:

<p><a href="destination" title="
text          ">link</a></p>

The exception is goldmark. It does this:

<p><a href="destination" title="
          text          ">link</a></p>

pulldown-cmark does this:

<p><a href="destination" title="
      text          ">link</a></p>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions