update comments

pull/3400/head
Divyansh Singh 2 years ago
parent a019a9dffe
commit 2167a2eb10

@ -43,9 +43,9 @@ export const linkPlugin = (
const { pathname, protocol } = new URL(url, 'http://a.com') const { pathname, protocol } = new URL(url, 'http://a.com')
if ( if (
// skip on internal anchor links // skip internal anchor links
!url.startsWith('#') && !url.startsWith('#') &&
// skip on mail/custom protocol links // skip mail/custom protocol links
protocol.startsWith('http') && protocol.startsWith('http') &&
// skip links to files (other than html/md) // skip links to files (other than html/md)
treatAsHtml(pathname) treatAsHtml(pathname)

Loading…
Cancel
Save