Github cf-blog 仓库编辑 themes/JustNews/admin/edit.html 源码
添加 htmlDecode : true 开启HTML标记编码
<script type="text/javascript">
$(function() {
$('#myTab li:eq(0) a').tab('show');
//获取文章
var articleJson = <!--{articleJson}-->;
//获取分类
var categoryJson = <!--{categoryJson}-->;
var mdEditor = editormd("content", {
//width : "90%",
height : 640,
path : "https://cdn.jsdelivr.net/npm/[email protected]/lib/",
appendMarkdown : articleJson.contentMD, //编辑器赋值
saveHTMLToTextarea : true,
mode : "markdown",
tex : true,
tocm : true,
htmlDecode : true,
codeFold : true
});
Comments | NOTHING
该文章已经关闭评论