mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-25 21:16:21 +00:00
fix(callouts): use user provided title instead of canonical for default title
This commit is contained in:
parent
be9b6b3a1e
commit
421718958f
1 changed files with 1 additions and 6 deletions
|
@ -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,
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue