forked from mirror/MrDoc
修复Editor.md编辑器标题链接无效的问题
This commit is contained in:
parent
d565e45953
commit
076c6d3a31
@ -4,8 +4,10 @@
|
||||
|
||||
- [新增]修改文档页面快捷键(Ctrl+S)保存;
|
||||
- [新增]文集大纲广告位4;
|
||||
- [修复]Editor.md编辑器标题链接不显示的问题;
|
||||
- [优化]修改文档页面「查看文档」功能;
|
||||
|
||||
|
||||
### v0.6.9 2021-07-26
|
||||
|
||||
- [新增]后台管理中心的图片管理和附件管理功能;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user