Skip to content

[fuzz result] ![^x] footnote reference eats the ! #817

@notriddle

Description

@notriddle

Consider this markdown:

![^1]

[^1]: foo

Naturally, it should render as !1. The ! should show up, but it doesn't in pulldown-cmark.

Details

Events from pulldown-cmark:

"![^+\\&~p+]\n[^+\\&~p+]:\n" -> [
  Start(Paragraph)
    FootnoteReference(Boxed("1"))
    Start(FootnoteDefinition(Boxed("1")))
    End(FootnoteDefinition)
  End(Paragraph)
]

Events from pandoc:

"![^+\\&~p+]\n[^+\\&~p+]:\n" -> [
  Start(Paragraph)
    Text(Boxed("!"))
    FootnoteReference(Boxed("1"))
    Start(FootnoteDefinition(Boxed("1")))
    End(FootnoteDefinition)
  End(Paragraph)
]

Footnotes

  1. foo

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