From b5295e0f261dd6dc7903bae2102115340ccd46dd Mon Sep 17 00:00:00 2001
From: Neel Shah <neelshah.1998@gmail.com>
Date: Sun, 11 Feb 2024 19:08:12 +0000
Subject: [PATCH] fix: breadcrumbs displayName issue for file names ending with index (#839)
---
quartz/plugins/transformers/links.ts | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/quartz/plugins/transformers/links.ts b/quartz/plugins/transformers/links.ts
index 1ba0c8e..2d43be1 100644
--- a/quartz/plugins/transformers/links.ts
+++ b/quartz/plugins/transformers/links.ts
@@ -4,7 +4,7 @@
RelativeURL,
SimpleSlug,
TransformOptions,
- _stripSlashes,
+ stripSlashes,
simplifySlug,
splitAnchor,
transformLink,
@@ -115,7 +115,7 @@
}
// need to decodeURIComponent here as WHATWG URL percent-encodes everything
- const full = decodeURIComponent(_stripSlashes(destCanonical, true)) as FullSlug
+ const full = decodeURIComponent(stripSlashes(destCanonical, true)) as FullSlug
const simple = simplifySlug(full)
outgoing.add(simple)
node.properties["data-slug"] = full
--
Gitblit v1.10.0