fix(build): don't normalize links containing target or download property

matches the router behavior more closely

closes #3947
pull/3291/head
Divyansh Singh 5 months ago
parent 57cd793a2d
commit e24899a073

@ -27,7 +27,9 @@ export const linkPlugin = (
) => {
const token = tokens[idx]
const hrefIndex = token.attrIndex('href')
if (hrefIndex >= 0) {
const targetIndex = token.attrIndex('target')
const downloadIndex = token.attrIndex('download')
if (hrefIndex >= 0 && targetIndex < 0 && downloadIndex < 0) {
const hrefAttr = token.attrs![hrefIndex]
const url = hrefAttr[1]
if (isExternal(url)) {

Loading…
Cancel
Save