Code Monkey home page Code Monkey logo

Comments (9)

upupming avatar upupming commented on May 18, 2024

@Kwaiyu Thanks for the feedback, I will take a look soon.

from docsify-katex.

upupming avatar upupming commented on May 18, 2024

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.

upupming avatar upupming commented on May 18, 2024

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:
image

A fix will come soon~

from docsify-katex.

Kwaiyu avatar Kwaiyu commented on May 18, 2024

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.

upupming avatar upupming commented on May 18, 2024

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.

Kwaiyu avatar Kwaiyu commented on May 18, 2024

@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.

upupming avatar upupming commented on May 18, 2024

@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.

Kwaiyu avatar Kwaiyu commented on May 18, 2024

@upupming Thanks for your help!

from docsify-katex.

Kwaiyu avatar Kwaiyu commented on May 18, 2024

Closed

from docsify-katex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.