xoofx / markdig

A fast, powerful, CommonMark compliant, extensible Markdown processor for .NET
BSD 2-Clause "Simplified" License
4.21k stars 444 forks source link

angle brackets in footnote are not escaped #803

Closed hddreier closed 1 month ago

hddreier commented 1 month ago

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

xoofx commented 1 month ago

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