angle brackets in footnote are not escaped #682

Closed
opened 2026-01-29 14:42:52 +00:00 by claunia · 1 comment
Owner

Originally created by @hddreier on GitHub (Jun 14, 2024).

angle brackets in footnote should be converted to < > but aren't. Footnote:

[^LoopEntity]: außer bei der klassischen imperativen For-Schleife mit Schleifenzähler oder Iterator (in C: for(<Initialisierung>;<Bedingung>;<Inkrement>), die letztlich nur syntaktischer Zucker für eine explizite Konstruktion mit GOTOs ist und ein Label einspart.

HTML produced:
<p id="5502">außer bei der klassischen imperativen For-Schleife mit Schleifenzähler oder Iterator (in C: for(<Initialisierung>;<Bedingung>;<Inkrement>), die letztlich nur syntaktischer Zucker für eine explizite Konstruktion mit GOTOs ist und ein Label einspart.<a href="#fnref:25" class="footnote-back-ref">&#8617;</a></p>

Markdig 0.37

Originally created by @hddreier on GitHub (Jun 14, 2024). angle brackets in footnote should be converted to &lt; &gt; but aren't. Footnote: `[^LoopEntity]: außer bei der klassischen imperativen For-Schleife mit Schleifenzähler oder Iterator (in C: for(<Initialisierung>;<Bedingung>;<Inkrement>), die letztlich nur syntaktischer Zucker für eine explizite Konstruktion mit GOTOs ist und ein Label einspart.` HTML produced: `<p id="5502">außer bei der klassischen imperativen For-Schleife mit Schleifenzähler oder Iterator (in C: for(<Initialisierung>;<Bedingung>;<Inkrement>), die letztlich nur syntaktischer Zucker für eine explizite Konstruktion mit GOTOs ist und ein Label einspart.<a href="#fnref:25" class="footnote-back-ref">&#8617;</a></p>` Markdig 0.37
claunia added the question label 2026-01-29 14:42:53 +00:00
Author
Owner

@xoofx commented on GitHub (Jun 14, 2024):

Don't think it has anything to do with footnotes. I believe that <> are interpreted as HTML inlines as per the CommonMark spec here.

@xoofx commented on GitHub (Jun 14, 2024): Don't think it has anything to do with footnotes. I believe that `<>` are interpreted as HTML inlines as per the CommonMark spec [here](https://spec.commonmark.org/0.31.2/#raw-html).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#682