diff --git a/Application/Home/View/Page/index.html b/Application/Home/View/Page/index.html index 03be08b6f..fff4d7fcc 100644 --- a/Application/Home/View/Page/index.html +++ b/Application/Home/View/Page/index.html @@ -21,13 +21,3 @@

{$page.page_title}

- diff --git a/Public/js/page/edit.js b/Public/js/page/edit.js index 7fbaea467..d30438781 100644 --- a/Public/js/page/edit.js +++ b/Public/js/page/edit.js @@ -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", diff --git a/Public/js/page/index.js b/Public/js/page/index.js index a1a883e79..e4e344fd4 100644 --- a/Public/js/page/index.js +++ b/Public/js/page/index.js @@ -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"); diff --git a/composer.json b/composer.json index e38459788..106ca1030 100644 --- a/composer.json +++ b/composer.json @@ -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": [ {