Jacky Zhao
2024-02-23 421718958fc47db0f1a7b53f51e0c7063db744b3
fix(callouts): use user provided title instead of canonical for default title
1 files modified
7 ■■■■ changed files
quartz/plugins/transformers/ofm.ts 7 ●●●● patch | view | raw | blame | history
quartz/plugins/transformers/ofm.ts
@@ -412,12 +412,7 @@
                  children: [
                    {
                      type: "text",
                      value: useDefaultTitle
                        ? capitalize(
                            i18n(cfg.locale).components.callout[calloutType as ValidCallout] ??
                              calloutType,
                          )
                        : titleContent + " ",
                      value: useDefaultTitle ? capitalize(typeString) : titleContent + " ",
                    },
                    ...restOfTitle,
                  ],