问题
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