fix: fix same page hash links with encoded chars

close #1749
pull/2070/head
Evan You 2 years ago
parent 868a9ff81e
commit e05a3f2b5a

@ -46,6 +46,8 @@ export const linkPlugin = (
!/\.(?!html|md)\w+($|\?)/i.test(url)
) {
normalizeHref(hrefAttr, env)
} else if (url.startsWith('#')) {
hrefAttr[1] = decodeURI(hrefAttr[1])
}
// append base to internal (non-relative) urls

Loading…
Cancel
Save