fix: Remove target for mailto links (#652)

Closes https://github.com/docsifyjs/docsify/issues/625
This commit is contained in:
程康
2018-10-23 15:01:37 +08:00
committed by cinwell.li
parent f6f4e32485
commit 18f0f03a89
+1 -1
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) {