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

Having multiple footnotes doesn't work #5

Open
cornwarecjp opened this issue Mar 19, 2023 · 0 comments
Open

Having multiple footnotes doesn't work #5

cornwarecjp opened this issue Mar 19, 2023 · 0 comments

Comments

@cornwarecjp
Copy link

I used this code on a document like this:

Foo[^1]
Bar[^2]

[^1]: Footnote 1
[^2]: Footnote 2

The problem I ran into was that the [^2] after "Bar" remained unmodified in the output.
I noticed that, in the source code, two of the three regexes end with "/mg", and the third only with "/m". I fixed the issue by also using "/mg" on the third regex in my copy of the code. The "g" is there to replace all matches, not just the first one.

If you agree with this solution, I think it would be nice to also apply this in your code.

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

No branches or pull requests

1 participant