Flask-PageDown and MathJax

喜欢而已 提交于 2020-01-03 16:52:33

问题


I managed to implement PageDown in my Flask app via Flask-PageDown, following instructions here.

That works fine, but mathematical expressions (MathJax) of the type:

$$ .... $$

are not rendered in the previewer via such an extension.

Note that my main template contains the following:

<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML"></script>

Has someone an idea of how to tackle this ? Thanks for any hint.


回答1:


It's said that you want to use the MATHJAX in your flask app just as Octopress did, right?

Maybe you need this one: python-markdown-math, which is recommended by python-markdown.

Hopes it will help you. Gook luck.



来源:https://stackoverflow.com/questions/29306242/flask-pagedown-and-mathjax

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!