mirror of
https://github.com/jgm/pandoc.git
synced 2026-07-11 20:07:22 +00:00
5e66811875
Previously `[^super^](#ref)` wasn't parsed as a link, due to code that was meant to prevent footnote markers from being recognized as reference links. This commit tightens up that code to avoid this bad effect. We have also added a new restriction on footnote labels: they cannot contain the characters `^`, `[`, or `]`. Though this is technically a breaking change, we suspect that the impact will be minimal, as it's very unlikely people would be using these characters in their note labels. Closes #8981.
141 B
141 B
% pandoc --wrap=none
consectetur [^\[link\]^](#ref "Title")
^D
<p>consectetur <a href="#ref" title="Title"><sup>[link]</sup></a></p>