fixed broken CJK links (#390)
This commit is contained in:
parent
fc58b10ab3
commit
a23f127c13
@ -63,7 +63,8 @@ export const CrawlLinks: QuartzTransformerPlugin<Partial<Options> | undefined> =
|
||||
const url = new URL(dest, `https://base.com/${curSlug}`)
|
||||
const canonicalDest = url.pathname
|
||||
const [destCanonical, _destAnchor] = splitAnchor(canonicalDest)
|
||||
const simple = simplifySlug(destCanonical as FullSlug)
|
||||
const simple = decodeURI(simplifySlug(destCanonical as FullSlug)) as SimpleSlug
|
||||
|
||||
outgoing.add(simple)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user