From 8cff69f83788b0c2b24304f5157c8ad403c702f5 Mon Sep 17 00:00:00 2001 From: ryu <114303361+ryuapp@users.noreply.github.com> Date: Fri, 12 Jul 2024 10:37:17 +0900 Subject: [PATCH] Fix vscode procol being converted to url --- markdown-it/relative-path.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/markdown-it/relative-path.ts b/markdown-it/relative-path.ts index aced6cbcd..944c0c331 100644 --- a/markdown-it/relative-path.ts +++ b/markdown-it/relative-path.ts @@ -5,7 +5,8 @@ export default function relativeLinksPlugin(md: any) { function makeRelative(link: string, baseURL: string) { if ( link.startsWith("http://") || link.startsWith("https://") || - link.startsWith("/") || link.startsWith("#") || link.startsWith("mailto:") + link.startsWith("/") || link.startsWith("#") || + link.startsWith("mailto:") || link.startsWith("vscode:") ) { return link; }