玛氪宕·梦魔(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.

62 lines
1.8 KiB

10 years ago
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8" />
10 years ago
<title>Tex科学公式语言 - Editor.md examples</title>
10 years ago
<link rel="stylesheet" href="css/style.css" />
10 years ago
<link rel="stylesheet" href="../dist/css/editormd.css" />
10 years ago
</head>
<body>
<div id="layout">
<header>
10 years ago
<h1>Tex科学公式语言</h1>
10 years ago
<p>基于KaTeX.js:<a href="http://khan.github.io/KaTeX/" target="_blank">http://khan.github.io/KaTeX/</a></p>
10 years ago
<p>注:默认使用CloudFlare的CDN,有时加载速度会比较慢,可自定义加载地址。</p>
10 years ago
</header>
10 years ago
<div id="test-editormd">
<textarea style="display:none;">####开启科学公式支持
配置项:
{
tex : true
}
####示例
10 years ago
$$E=mc^2$$
10 years ago
行内的公式$$E=mc^2$$行内的公式,行内的$$E=mc^2$$公式。
10 years ago
$$\(\sqrt{3x-1}+(1+x)^2\)$$
10 years ago
$$\sin(\alpha)^{\theta}=\sum_{i=0}^{n}(x^i + \cos(f))$$
####自定义KaTeX的URL
```javascript
//默认使用CloudFlare的CDN,有时加载速度会比较慢
//或者直接修改源码
editormd.katexURL = {
js : "your url",
css : "your url"
};
```
</textarea>
10 years ago
</div>
</div>
10 years ago
<script src="js/jquery.min.js"></script>
10 years ago
<script src="../src/js/editormd.js"></script>
<script type="text/javascript">
10 years ago
$(function() {
var testEditor = editormd("test-editormd", {
width: "90%",
height: 640,
path : '../lib/',
tex : true
10 years ago
});
});
</script>
</body>
</html>