diff --git a/src/node/markdown/plugins/link.ts b/src/node/markdown/plugins/link.ts index 4028b4ebea27..1e0bcbbbef08 100644 --- a/src/node/markdown/plugins/link.ts +++ b/src/node/markdown/plugins/link.ts @@ -23,7 +23,12 @@ export const linkPlugin = ( Object.entries(externalAttrs).forEach(([key, val]) => { token.attrSet(key, val) }) - } else if (!url.startsWith('#')) { + } else if ( + // internal anchor links + !url.startsWith('#') && + // mail links + !url.startsWith('mailto:') + ) { normalizeHref(hrefAttr) } }