fix: Remove target for mailto links (#652)
Closes https://github.com/docsifyjs/docsify/issues/625
This commit is contained in:
parent
f6f4e32485
commit
18f0f03a89
1 changed files with 1 additions and 1 deletions
|
|
@ -213,7 +213,7 @@ export class Compiler {
|
||||||
}
|
}
|
||||||
href = router.toURL(href, null, router.getCurrentPath())
|
href = router.toURL(href, null, router.getCurrentPath())
|
||||||
} else {
|
} else {
|
||||||
attrs += ` target="${linkTarget}"`
|
attrs += href.startsWith('mailto:') ? '' : ` target="${linkTarget}"`
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config.target) {
|
if (config.target) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue