fix: allow formatting in callout titles
This commit is contained in:
1 parent
22de92f6c4
commit
7cb1c291c8
2 files changed
+8
-10
No files matched your search
@@ -387,10 +387,7 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin<Partial<Options>
|
||||
match.input.slice(calloutDirective.length).trim() || capitalize(calloutType)
|
||||
const titleNode: Paragraph = {
|
||||
type: "paragraph",
|
||||
children:
|
||||
restOfTitle.length === 0
|
||||
? [{ type: "text", value: titleContent + " " }]
|
||||
: restOfTitle,
|
||||
children: [{ type: "text", value: titleContent + " " }, ...restOfTitle],
|
||||
}
|
||||
const title = mdastToHtml(titleNode)
|
||||
|
||||
|
||||
Reference in new issue
Block a user