From 2167a2eb102e15001baa952f5e8afd964a160250 Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Mon, 1 Jan 2024 20:01:26 +0530 Subject: [PATCH] update comments --- src/node/markdown/plugins/link.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/node/markdown/plugins/link.ts b/src/node/markdown/plugins/link.ts index 662f6c2b..45621daf 100644 --- a/src/node/markdown/plugins/link.ts +++ b/src/node/markdown/plugins/link.ts @@ -43,9 +43,9 @@ export const linkPlugin = ( const { pathname, protocol } = new URL(url, 'http://a.com') if ( - // skip on internal anchor links + // skip internal anchor links !url.startsWith('#') && - // skip on mail/custom protocol links + // skip mail/custom protocol links protocol.startsWith('http') && // skip links to files (other than html/md) treatAsHtml(pathname)