Skip to content

Commit

Permalink
支持生成TOC目录、科学公式、流程图和序列图
Browse files Browse the repository at this point in the history
  • Loading branch information
star7th committed Oct 19, 2016
1 parent 92e6da1 commit f0ae101
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
10 changes: 0 additions & 10 deletions Application/Home/View/Page/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,3 @@ <h3 style="text-align: center;">{$page.page_title}</h3>
<script src="__PUBLIC__/editor.md/lib/jquery.flowchart.min.js"></script>
<script src="__PUBLIC__/editor.md/editormd.min.js"></script>
<script src="__PUBLIC__/js/page/index.js"></script>
<script type="text/javascript">
var EditormdView = editormd.markdownToHTML("page_md_content", {
htmlDecode : "style,script,iframe", // you can filter tags decode
emoji : true,
taskList : true,
tex : true, // 默认不解析
flowChart : true, // 默认不解析
sequenceDiagram : true, // 默认不解析
});
</script>
4 changes: 4 additions & 0 deletions Public/js/page/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ $(function() {
syncScrolling: "single",
path: DocConfig.pubile + "/editor.md/lib/",
placeholder: lang["editormd_placeholder"] ,
taskList : true,
tex : true, // 默认不解析
flowChart : true, // 默认不解析
sequenceDiagram : true, // 默认不解析
imageUpload: true,
imageFormats: ["jpg", "jpeg", "gif", "png", "bmp", "webp", "JPG", "JPEG", "GIF", "PNG", "BMP", "WEBP"],
imageUploadURL: "?s=home/page/uploadImg",
Expand Down
9 changes: 9 additions & 0 deletions Public/js/page/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@

$(function(){
hljs.initHighlightingOnLoad();

var EditormdView = editormd.markdownToHTML("page_md_content", {
htmlDecode : "style,script,iframe", // you can filter tags decode
emoji : true,
taskList : true,
tex : true, // 默认不解析
flowChart : true, // 默认不解析
sequenceDiagram : true, // 默认不解析
});

//为所有table标签添加bootstap支持的表格类
$("table").addClass("table table-bordered table-hover");
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "ShowDoc is a tool greatly applicable for an IT team to share documents online",
"keywords": ["showdoc","documents","Api"],
"homepage": "https://github.com/star7th/showdoc",
"version":"v1.1.0",
"version":"v1.1.1",
"license": "Apache-2.0",
"authors": [
{
Expand Down

0 comments on commit f0ae101

Please sign in to comment.