-
Notifications
You must be signed in to change notification settings - Fork 31
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
Docsify latex in different positions are invalid #12
Comments
@Kwaiyu Thanks for the feedback, I will take a look soon. |
Hi @Kwaiyu, I have confirmed this bug which is caused by the design of docsify-katex is just a find-replace renderer for math equations, which may fail in a complex context. I will try to find another way to extend marked.js to know the context of the KaTeX, which may take some time~ Just a note, we should do something like this |
Hi @Kwaiyu , I have inspected your markdown file, which contains ````` can not be recognized well by docsify-katex, you can delete that for a temp workaround: A fix will come soon~ |
Hi @upupming, |
@Kwaiyu I will fix this soon, AKA make docsify-katex behaves the same as Markdown All in One |
@upupming ok, As you said, delete " |
@upupming Thanks for your help! |
Closed |
Describe the bug
Docsify latex in different positions of the same file are invalid
To Reproduce
Steps to reproduce the behavior:
add code
white markdown article, use latex like this PythonTutorial.md
add latex to beginning of article, add below latex to middle of the article.
Latex as:
Expected behavior
Latex in all positions are valid
Screenshots
beginning of article latex normal analysis:
markdown file:
show:
Latex doesn't seem to parse at the middle of the article:
markdown file:
show:
Desktop (please complete the following information):
Additional context
I try latex below code, or latex above code both show nomal.
But also it’s not work in this position:
Please help me check why it doesn't work.
The text was updated successfully, but these errors were encountered: