CF-BLOG MarkDown 开启HTML标记编码


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
            });

声明:Blog on RackNerd|版权所有,违者必究|如未注明,均为原创|本网站采用BY-NC-SA协议进行授权

转载:转载请注明原文链接 - CF-BLOG MarkDown 开启HTML标记编码


本博客托管在 RackNerd 的 VPS 上