玛氪宕·梦魔(Markdown Memo),使用Markdown的云端备忘录,百度IFE的RIA启航班的不合格的作业,才……才没有什么阴谋呢! 源gitee链接https://gitee.com/arathi/MarkdownMemo?_from=gitee_search
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

47 lines
1.9 KiB

<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8" />
<title>Mathjax - Editor.md examples</title>
<link rel="stylesheet" href="css/style.css" />
</head>
<body>
<div id="layout">
<header>
<h1>支持Latex(MathJax)科学公式</h1>
<p>基于MathJax.js:<a href="http://www.mathjax.org/" target="_blank">http://www.mathjax.org/</a></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">####科学公式
$$E=mc^2$$
$$\(\sqrt{3x-1}+(1+x)^2\)$$
$$\sin(\alpha)^{\theta}=\sum_{i=0}^{n}(x^i + \cos(f))$$</script>
</div>
</div>
<script src="../lib/jquery.min.js"></script>
<link rel="stylesheet" href="../dist/css/editormd.css" />
<script src="../src/js/editormd.js"></script>
<script type="text/javascript">
$(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,
path : '../lib/',
mathjax : true
});
});
</script>
</body>
</html>