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

Superscripts can sometimes be incorrectly interpreted as footnotes #99

Open
K4LCIFER opened this issue Dec 17, 2024 · 0 comments
Open
Labels
bug Something isn't working markdown

Comments

@K4LCIFER
Copy link

K4LCIFER commented Dec 17, 2024

If one types in a superscript as

text ^[superscript]^

It gets interpreted as a footnote as follows
image

The issue is that the syntax for a footnote text ^[footnote text] is similar to to a superscript with square brackets inside text ^[superscript with square brackets]^ — specifically the issue is the trailing ^. I would argue that, if there exists a trailing ^ then it should be interpreted as a superscript. If there isn't, then it should be interpreted as a footnote.

A current workaround for this issue is to escape the first square bracket with a backslash — eg text ^\[superscript]^ (this will be correctly interpreted as a superscript rather than a footnote).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working markdown
Projects
None yet
Development

No branches or pull requests

2 participants