-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Katex introduces errors in footnotes #1470
Comments
Thanks for the report! I can reproduce. We are probably not handling something correctly when detecting footnote to move when |
I think our regex in Lines 1027 to 1037 in f244cf1
does not take into account the SVG content resulting from r-katex or something else 🤔 |
I think the issue that with KaTeX processing we get <a href=\"#fnref2\" class=\"footnote-back\">↩︎</a></p></li> where without we get <a href=\"#fnref2\" class=\"footnote-back\">↩︎</a></p></li> Not the difference between single unicode chars and several HTML sequence characters. So @yihui hope it helps do the right thing. Thanks! |
Works for me! 🎉 |
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary. |
I recently switched my book over to using Katex as the math engine by adding the following to
_output.yml
:The math looks wonderful, everything renders correctly, but it screws up the footnotes -- all footnotes now appear on the last page, as in this issue: #793.
You can reproduce this in any book (so far as I can tell), but here's an explicit example:
then add
math_method: r-katex
as in the above.The text was updated successfully, but these errors were encountered: