From 028bcec62c3ca019a96783f17eaee1ecce6e092b Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Mon, 07 Aug 2023 00:09:29 +0000
Subject: [PATCH] mobile fixes, fix bug when linking to anchor on home, docs
---
quartz/plugins/transformers/ofm.ts | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/quartz/plugins/transformers/ofm.ts b/quartz/plugins/transformers/ofm.ts
index 13a32ca..0904ed1 100644
--- a/quartz/plugins/transformers/ofm.ts
+++ b/quartz/plugins/transformers/ofm.ts
@@ -96,7 +96,7 @@
function canonicalizeCallout(calloutName: string): keyof typeof callouts {
let callout = calloutName.toLowerCase() as keyof typeof calloutMapping
- return calloutMapping[callout]
+ return calloutMapping[callout] ?? calloutName
}
const capitalize = (s: string): string => {
@@ -225,7 +225,6 @@
}
// internal link
- // const url = transformInternalLink(fp + anchor)
const url = fp + anchor
return {
type: "link",
--
Gitblit v1.10.0