How to use MathJax in Markdown
When to Use MathJax?
When using markdown to write blog, especially using Github Page to do it. You may have trouble to display formula. There are several ways[1] to do that. But the simplest way is to use MathJax.
How to Use MathJax?
Add the code below to your markdown file, and that’s it!
<script type="text/javascript" async src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML"> </script>
For example, add the test code to your blog.md file
<script type="text/javascript" async src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML"> </script>
test: $$n==x$$
Reference
[2] MathJax Chinese Doc 2.0 documentation
[3] MathJax basic tutorial and quick reference
[4] docs.mathjax.org
本文介绍如何在Markdown文档中使用MathJax显示数学公式,适用于撰写博客等场景。通过简单地将MathJax的JavaScript文件引入Markdown文件,即可轻松实现复杂的数学公式排版。
678

被折叠的 条评论
为什么被折叠?



