fixed broken CJK links (#390)

This commit is contained in:
松浦 知也 Matsuura Tomoya 2023-08-23 01:16:55 +09:00 committed by GitHub
parent c60b3d5e34
commit bb677840fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}