wiki can't render some specific latex, and it'll affect the normal work of the program #5216
Unanswered
TaiiHu
asked this question in
Error / Bug Report
Replies: 3 comments 1 reply
-
I can corroborate that this is a bug. I'm running Wiki.js v2.5.285 with Node v14.18.3 and Postgres v9.2.24. I'm using the default Katex for LaTeX parsing. To reproduce:
${{x}}$
This is valid LaTeX and should not cause problems, but it does. Double curly braces occur frequently in LaTeX content. However, I have found a workaround: separate any pairs of identical curly braces with a space. For the above example, ${ {x} }$ renders successfully. For the expression in the original question, this works: ${1 \over 2}<\left\lfloor {\mathrm {mod} }\left(\left\lfloor {y \over 17}\right\rfloor 2^{ {-17\lfloor x\rfloor -{\mathrm {mod} }(\lfloor y\rfloor ,17)} },2\right)\right\rfloor$ |
Beta Was this translation helpful? Give feedback.
1 reply
-
same problem, batch splitting all '{{' and '}}' |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
i copy this formula from Tupper's self-referential wikipedia,
{1 \over 2}<\left\lfloor {\mathrm {mod}}\left(\left\lfloor {y \over 17}\right\rfloor 2^{{-17\lfloor x\rfloor -{\mathrm {mod}}(\lfloor y\rfloor ,17)}},2\right)\right\rfloor
When render is done, it'll lead to a completely blank page.
I can't do anything with the website. In order to modify this article, I had to reopen the site and modify it directly from the admin page.
So do not test it at you index page.
After test, i think When a letter is in two curly brackets like
{{x}}
triggered this bug.Beta Was this translation helpful? Give feedback.
All reactions