Browse Source

update examples/mathjax

mathjax-version
Pandao 10 years ago
parent
commit
1113f4528d
  1. 11
      examples/mathjax.html

11
examples/mathjax.html

@ -10,7 +10,8 @@
<header>
<h1>支持Latex(MathJax)科学公式</h1>
<p>基于MathJax.js:<a href="http://www.mathjax.org/" target="_blank">http://www.mathjax.org/</a></p>
<p>注:默认不开启,影响实时预览的响应速度;</p>
<p>注1:默认不开启,影响实时预览的响应速度;</p>
<p>注2:可以自定义MathJax加载URL,国内可以采用这个CDN,http://cdn.bootcss.com/mathjax/2.4.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML</p>
</header>
<div class="editormd" id="test-editormd">
<script type="text/markdown">####
@ -27,7 +28,13 @@ $$\sin(\alpha)^{\theta}=\sum_{i=0}^{n}(x^i + \cos(f))$$</script>
<link rel="stylesheet" href="../dist/css/editormd.css" />
<script src="../src/js/editormd.js"></script>
<script type="text/javascript">
$(function() {
$(function() {
//自定义MathJax加载URL,适用于国内
editormd.mathjaxURL = "http://cdn.bootcss.com/mathjax/2.4.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML";
//适用于全球/国外
//editormd.mathjaxURL = "http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML";
var testEditor = editormd("test-editormd", {
width: "90%",
height: 480,

Loading…
Cancel
Save