From 076c6d3a31ba0e397cbfcebb2ff9215a61b37550 Mon Sep 17 00:00:00 2001 From: yangjian Date: Fri, 13 Aug 2021 12:32:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DEditor.md=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E5=99=A8=E6=A0=87=E9=A2=98=E9=93=BE=E6=8E=A5=E6=97=A0=E6=95=88?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGES.md | 2 ++ static/editor.md/editormd.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index d82e7c0..625f504 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -4,8 +4,10 @@ - [新增]修改文档页面快捷键(Ctrl+S)保存; - [新增]文集大纲广告位4; +- [修复]Editor.md编辑器标题链接不显示的问题; - [优化]修改文档页面「查看文档」功能; + ### v0.6.9 2021-07-26 - [新增]后台管理中心的图片管理和附件管理功能; diff --git a/static/editor.md/editormd.js b/static/editor.md/editormd.js index 7b8e681..fd180e6 100644 --- a/static/editor.md/editormd.js +++ b/static/editor.md/editormd.js @@ -3873,7 +3873,7 @@ // headingHTML += ""; headingHTML += "]*>\s?/g,'') + "\" class=\"reference-link\">"; headingHTML += ""; - 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 += ""; // console.log(headingHTML) return headingHTML;