From 04c04f02ba3bf01380d7fc9f469354de13f19f47 Mon Sep 17 00:00:00 2001 From: "Tomoya Matsuura(MacBookPro)" Date: Mon, 21 Aug 2023 20:00:50 +0900 Subject: [PATCH] fixed broken CJK links --- quartz/plugins/transformers/links.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/quartz/plugins/transformers/links.ts b/quartz/plugins/transformers/links.ts index d9c9c7c6..7d992722 100644 --- a/quartz/plugins/transformers/links.ts +++ b/quartz/plugins/transformers/links.ts @@ -63,7 +63,8 @@ export const CrawlLinks: QuartzTransformerPlugin | 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) }