fix: Remove target for mailto links (#652)

Closes https://github.com/docsifyjs/docsify/issues/625
This commit is contained in:
程康 2018-10-23 08:01:37 +01:00 committed by cinwell.li
commit 18f0f03a89

View file

@ -213,7 +213,7 @@ export class Compiler {
}
href = router.toURL(href, null, router.getCurrentPath())
} else {
attrs += ` target="${linkTarget}"`
attrs += href.startsWith('mailto:') ? '' : ` target="${linkTarget}"`
}
if (config.target) {