优化Vditor生成的文档目录

This commit is contained in:
yangjian 2020-11-21 21:48:43 +08:00
parent 9f4236ecd9
commit 2379951f9f
2 changed files with 1 additions and 3 deletions

View File

@ -324,6 +324,4 @@
updateDocShare(share_data);
})
</script>
{% endblock %}

View File

@ -509,7 +509,7 @@
if (outlineElement.innerText.trim() !== '') {
// 去除vditor默认添加的空格字符
var toc_html = $("#toc-container");
toc_html.html(toc_html.html().replace('',''))
//toc_html.html(toc_html.html().replace('',''))
var toc_cnt = $(".markdown-toc-list").children().length;
//console.log(toc_cnt)
if(toc_cnt > 0){