diff options
| author | John MacFarlane <[email protected]> | 2023-10-20 10:27:49 -0700 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2023-10-20 10:27:49 -0700 |
| commit | 5e668118751b50aaf7f6ab675dd5dc628ced30bc (patch) | |
| tree | 919f081121f3f17be974234f71f59fd900fc6b88 /test | |
| parent | 0fdac4984b61de9de07f730ea071ee2bb9f1076c (diff) | |
Markdown reader: fix blindspot with superscript in links.
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.
Diffstat (limited to 'test')
| -rw-r--r-- | test/command/8981.md | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/command/8981.md b/test/command/8981.md new file mode 100644 index 000000000..00ba6d231 --- /dev/null +++ b/test/command/8981.md @@ -0,0 +1,6 @@ +``` +% pandoc --wrap=none +consectetur [^\[link\]^](#ref "Title") +^D +<p>consectetur <a href="#ref" title="Title"><sup>[link]</sup></a></p> +``` |
