修复Editor.md编辑器标题链接无效的问题

This commit is contained in:
yangjian 2021-08-13 12:32:35 +08:00
parent d565e45953
commit 076c6d3a31
2 changed files with 3 additions and 1 deletions

View File

@ -4,8 +4,10 @@
- [新增]修改文档页面快捷键Ctrl+S保存;
- [新增]文集大纲广告位4
- [修复]Editor.md编辑器标题链接不显示的问题
- [优化]修改文档页面「查看文档」功能;
### v0.6.9 2021-07-26
- [新增]后台管理中心的图片管理和附件管理功能;

View File

@ -3873,7 +3873,7 @@
// headingHTML += "<a name=\"" + text + "\" class=\"reference-link\"></a>";
headingHTML += "<a name=\"" + text.replace(/<[^>]*>\s?/g,'') + "\" class=\"reference-link\"></a>";
headingHTML += "<span class=\"header-link octicon octicon-link\"></span>";
headingHTML += (hasLinkReg) ? this.atLink(this.mark(this.emoji(text))) : this.mark(this.emoji(text));
headingHTML += (hasLinkReg) ? this.atLink(this.mark(this.emoji(linkText))) : this.mark(this.emoji(text));
headingHTML += "</h" + level + ">";
// console.log(headingHTML)
return headingHTML;