Flask-PageDown和MathJax [英] Flask-PageDown and MathJax

查看:230
本文介绍了Flask-PageDown和MathJax的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过 Flask 应用程序中实现了 PageDown com / miguelgrinberg / flask-pagedown /rel =nofollow> Flask-PageDown ,按照说明这里



这很好,但类型的数学表达式( MathJax

$$ .... $$



不会在预览程式中呈现这样的扩展名。

请注意,我的主要模板包含以下内容:

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

是否有人知道如何解决这个问题?感谢您的任何提示。

解决方案

据说您想在烧瓶应用程序中使用MATHJAX,就像Octopress一样。



也许你需要这个: python- markdown-math ,这是 python-markdown

a>。



希望它能帮助你。好运气。


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.

解决方案

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.

这篇关于Flask-PageDown和MathJax的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆