Skip to content

[fuzz result] footnote definition not parsed when there's <4 spaces indentation #758

@notriddle

Description

@notriddle

foo and bar should both be footnote definitions, but foo is getting parsed as a link (and the reference made later isn't working right):

 [^foo]: x

[^bar]: x

Test [^foo] / [^bar]  

Result:

<div class="footnote-definition" id="bar"><sup class="footnote-definition-label">1</sup>
<p>x</p>
</div>
<p>Test [^foo] / <sup class="footnote-reference"><a href="#bar">1</a></sup></p>
Details

Events from pulldown-cmark:

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

Events from pandoc:

" [^|]:\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