Skip to content

[fuzz result]: footnote definitions are allowed to contain line breaks #760

@notriddle

Description

@notriddle

[^foo\ \ ]: this should not be a footnote, but pulldown-cmark thinks it is

GitHub doesn't allow that, and neither does markdown-it. It's allowed for link definitions, but since the new-style footnotes are supposed to act like GitHub, we should follow it.

Details

This sample doesn't really say much about the bug above, but testing it and a few variants vs GitHub happened after finding a discrepancy with Pandoc.

"[^^\n\n]:\n" -> [
  Start(Paragraph)
    Text(Boxed("[^^"))
  End(Paragraph)
  Start(Paragraph)
    Text(Boxed("]:"))
  End(Paragraph)
]

Events from pandoc:

"[^^\n\n]:\n" -> [
]

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