Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Footnotes after exclamation points are not recognized iin Markdown #7723

Closed
fiapps opened this issue Nov 30, 2021 · 2 comments
Closed

Footnotes after exclamation points are not recognized iin Markdown #7723

fiapps opened this issue Nov 30, 2021 · 2 comments

Comments

@fiapps
Copy link

fiapps commented Nov 30, 2021

echo 'Bug!^[Note.]' | pandoc -t markdown | pandoc

Output:

[WARNING] Note with key '1' defined at line 3 column 1 but not used.
<p>Bug[^1]</p>

This is pandoc 2.16.2 on macOS 11.6. The first pandoc command produces this, which looks valid to me, but pandoc fails to recognize that there's a reference to the footnote:

Bug![^1]

[^1]: Note.

Since pandoc is failing to parse its own input, I believe there is a bug either in the output or the input side.

@fiapps fiapps added the bug label Nov 30, 2021
@kysko
Copy link

kysko commented Nov 30, 2021

The result should have the "!" escaped:

Bug\![^1]

[^1]: Note.

@jgm
Copy link
Owner

jgm commented Nov 30, 2021

A regression from 0a93acf
(October 2021).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants