From 1eccd589770c7029454c913f7c19fdaa7a0058ba Mon Sep 17 00:00:00 2001 From: purocean Date: Fri, 17 Sep 2021 16:52:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=9C=81=E7=95=A5=E5=8D=8F=E8=AE=AE?= =?UTF-8?q?=E7=9A=84=E9=93=BE=E6=8E=A5=E4=B8=8D=E8=AF=86=E5=88=AB=E4=B8=BA?= =?UTF-8?q?=E6=9C=AC=E5=9C=B0=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/plugins/markdown-link.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/plugins/markdown-link.ts b/src/renderer/plugins/markdown-link.ts index deb7cdd0..9c65dc8d 100644 --- a/src/renderer/plugins/markdown-link.ts +++ b/src/renderer/plugins/markdown-link.ts @@ -93,7 +93,7 @@ function convertLink (state: StateCore) { return } - if (/^[^:]*:/.test(attrVal)) { // xxx: : 开头不转换 + if (/^[^:]*:/.test(attrVal) || attrVal.startsWith('//')) { // xxx: : 开头不转换 return }