From d02af6a8ae4c3bea4c94ad63c118d517318146fe Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Tue, 08 Aug 2023 00:34:38 +0000
Subject: [PATCH] architecture, fix vendor prefixing
---
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