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)