优化Vditor生成的文档目录
This commit is contained in:
parent
9f4236ecd9
commit
2379951f9f
@ -324,6 +324,4 @@
|
||||
updateDocShare(share_data);
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
{% endblock %}
|
||||
@ -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){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user