Coder Social home page Coder Social logo

markdown的数学公式 about izone HOT 4 CLOSED

hopetree avatar hopetree commented on September 26, 2024
markdown的数学公式

from izone.

Comments (4)

Hopetree avatar Hopetree commented on September 26, 2024

不是操作的问题,是本身就不支持,数学公式是扩展语法,markdown本身是不支持的,这个只支持原生的一些语法

from izone.

zhurboo avatar zhurboo commented on September 26, 2024

有什么办法添加相关支持吗?
我试了几个方法均失败了。
https://github.com/bauripalash/pydjax

from izone.

Hopetree avatar Hopetree commented on September 26, 2024

我之前其实尝试过拓展这个markdown,但是由于依赖的版本出现了问题所以放弃了,不过可以给你提供思路:

首先,我博客里面的markdown是使用的第三方库进行转化的,所以怎么让这个库支持更多扩展语法是关键,你可以找一下这个库的扩展库(是存在的,我找到过,有很多扩展语法可以用),装了扩展库之后在转化的时候增加语法支持的扩展就可以了(这种方法我试过,单独在python脚本没有问题,但是我放到django这里出了问题,记得好像是依赖的库之间的版本出现了问题)

还有一种方法,那就是你重新找一个能支持更多语法的markdown转化的库取代我现在用的这个

还有一种方法:可以让渲染markdown 的过程不在后端实现,而是由前端实现,同样你需要找前端的渲染方法

from izone.

zhurboo avatar zhurboo commented on September 26, 2024

感谢,已经使用Mathjax简单得从前端解决了。
不过这样使得原生的Latex语法需要稍微修改,有点麻烦。

from izone.

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.