From 421718958fc47db0f1a7b53f51e0c7063db744b3 Mon Sep 17 00:00:00 2001 From: Jacky Zhao Date: Fri, 23 Feb 2024 11:20:35 -0800 Subject: [PATCH] fix(callouts): use user provided title instead of canonical for default title --- quartz/plugins/transformers/ofm.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/quartz/plugins/transformers/ofm.ts b/quartz/plugins/transformers/ofm.ts index 6aad23052..fab7cf894 100644 --- a/quartz/plugins/transformers/ofm.ts +++ b/quartz/plugins/transformers/ofm.ts @@ -412,12 +412,7 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin children: [ { type: "text", - value: useDefaultTitle - ? capitalize( - i18n(cfg.locale).components.callout[calloutType as ValidCallout] ?? - calloutType, - ) - : titleContent + " ", + value: useDefaultTitle ? capitalize(typeString) : titleContent + " ", }, ...restOfTitle, ],