diff --git a/src/utils/rewriteLink.ts b/src/utils/rewriteLink.ts index 4203aaf..4e3ed5c 100644 --- a/src/utils/rewriteLink.ts +++ b/src/utils/rewriteLink.ts @@ -41,6 +41,15 @@ const rewriteLink = ( const currentNode = getCurrentNode(); const version = getCurrentVersion(); + // mailto links + if (href.startsWith('mailto:')) { + return createElement( + 'a', + { href }, + domToReact(children, parseOptions) + ); + } + // hash links if (href.startsWith('#')) { return createElement(