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 }