Comments (9)
@Kwaiyu Thanks for the feedback, I will take a look soon.
from docsify-katex.
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
from docsify-katex.
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~
from docsify-katex.
Hi @upupming,
Thank you very much for your help, "" means the code part in markdown, deleting "
" will not be able to parse the code, how to make a decision? Hope docsify latex and markdown syntax are compatible.
Regards,
kwaiyu
from docsify-katex.
Hope docsify latex and markdown syntax are compatible.
@Kwaiyu I will fix this soon, AKA make docsify-katex behaves the same as Markdown All in One
from docsify-katex.
@upupming ok, As you said, delete "" can solve the issue, I can still use "```" to mark the code. I will try to avoid using "
". Thanks.
from docsify-katex.
@Kwaiyu I have reported an issue to the marked.js repo. It seems the only way to achieve this is to make a PR to mark.js repo and then write our own plugin for math tokenization & rendering.
It will take some time for this bug to be fixed, so please be patient.
from docsify-katex.
@upupming Thanks for your help!
from docsify-katex.
Closed
from docsify-katex.
Related Issues (20)
- About {subarray} and \substack HOT 8
- The default font style should be italic HOT 3
- How to change the default font of formulas? HOT 2
- How to use this plugin? HOT 3
- I copy the ketex words in your index.html, but I can not get the latex equations. HOT 4
- Can you adapt to the latest version of KAtex? HOT 2
- how to render italic latex equations by default? HOT 1
- c194a9ef will render as $
- 1.5.0 is incompatible and many docsify page are crash HOT 3
- Not working after the latest update HOT 3
- Uncaught TypeError: Cannot read properties of undefined (reading 'renderer') HOT 1
- Maybe some problems caused by the update HOT 1
- Can you adapt to marked@4 ? HOT 2
- Uncaught ReferenceError: marked is not defined HOT 4
- Bug report - some LaTex cannt render correctly. HOT 5
- The katex maybe not work HOT 2
- how to use?
- Problem with "not equal" Math Symbol always render as "equal" Symbol HOT 1
- katex does not show equation HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docsify-katex.