fix(callouts): use user provided title instead of canonical for default title

This commit is contained in:
Jacky Zhao 2024-02-23 11:20:35 -08:00
parent be9b6b3a1e
commit 421718958f

View File

@ -412,12 +412,7 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin<Partial<Options>
children: [ children: [
{ {
type: "text", type: "text",
value: useDefaultTitle value: useDefaultTitle ? capitalize(typeString) : titleContent + " ",
? capitalize(
i18n(cfg.locale).components.callout[calloutType as ValidCallout] ??
calloutType,
)
: titleContent + " ",
}, },
...restOfTitle, ...restOfTitle,
], ],