Comments (4)
不是操作的问题,是本身就不支持,数学公式是扩展语法,markdown本身是不支持的,这个只支持原生的一些语法
from izone.
有什么办法添加相关支持吗?
我试了几个方法均失败了。
如https://github.com/bauripalash/pydjax
from izone.
我之前其实尝试过拓展这个markdown,但是由于依赖的版本出现了问题所以放弃了,不过可以给你提供思路:
首先,我博客里面的markdown是使用的第三方库进行转化的,所以怎么让这个库支持更多扩展语法是关键,你可以找一下这个库的扩展库(是存在的,我找到过,有很多扩展语法可以用),装了扩展库之后在转化的时候增加语法支持的扩展就可以了(这种方法我试过,单独在python脚本没有问题,但是我放到django这里出了问题,记得好像是依赖的库之间的版本出现了问题)
还有一种方法,那就是你重新找一个能支持更多语法的markdown转化的库取代我现在用的这个
还有一种方法:可以让渲染markdown 的过程不在后端实现,而是由前端实现,同样你需要找前端的渲染方法
from izone.
感谢,已经使用Mathjax简单得从前端解决了。
不过这样使得原生的Latex语法需要稍微修改,有点麻烦。
from izone.
Related Issues (20)
- 页面出现抖动的情况 HOT 3
- 教程里的clone链接是 ssh的。应该换成https HOT 1
- Segmentation fault (core dumped) HOT 2
- 我在 adminx 添加文章 的时候报了一个错误提示 HOT 1
- 注册 -> 快捷登录处选"微博"或者"Github" 后提示报错 HOT 3
- docker部署后如何修改模版文件 HOT 1
- pip install xxx error HOT 2
- 有个问题请教一下
- 不懂这个.py的语言。。。
- 请问网站有没有使用说明书,发表个文章好费劲 HOT 1
- 创建数据库表的时候出现了以下错误
- # 后台markdown编辑器改为使用 django-mdeditor HOT 2
- 部署完成后,没有评论功能 HOT 2
- 怎么创建文章呢 HOT 1
- 后台登录
- 请问打开文章之后,没有显示侧面悬浮的文章目录吗 HOT 4
- 多个站点问题 HOT 1
- 网站很棒,换个友链? HOT 4
- SyntaxError: Generator expression must be parenthesized HOT 1
- 启动服务后默认绑定127.0.0.1,请问怎么修改监听地址呢? HOT 1
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 izone.