Open yw981 opened 6 years ago
同求,没有行内公式很不方便
回复似乎是支持行内公式的,但是自己写博客写文章不支持行内公式
同求,希望加入支持,自己经常写论文总结,很希望有这个功能。
If you write your own HTML (directly or via a template/theme engine), you can include MathJax by adding this snippet to your page:
<script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML' async></script>
Here's a pre-populated example you can re-use.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>MathJax example</title>
<script type="text/javascript" async
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML" async>
</script>
</head>
<body>
<p>
When \(a \ne 0\), there are two solutions to \(ax^2 + bx + c = 0\) and they are
$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$
</p>
</body>
</html>
When (a \ne 0), there are two solutions to (ax^2 + bx + c = 0) and they are
$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$
And here is why GitHub's markdown does not support LaTex.
If you write your own HTML (directly or via a template/theme engine), you can include MathJax by adding this snippet to your page:
<script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML' async></script>
Here's a pre-populated example you can re-use.<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <title>MathJax example</title> <script type="text/javascript" async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML" async> </script> </head> <body> <p> When \(a \ne 0\), there are two solutions to \(ax^2 + bx + c = 0\) and they are $$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$ </p> </body> </html>
When (a \ne 0), there are two solutions to (ax^2 + bx + c = 0) and they are
$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$
And here is why GitHub's markdown does not support LaTex.
你这没用吧,我写markdown,这加一段java script算怎么一回事。
建议增加行内LaTeX解析,解决行内公式显示 谢谢