Jacky Zhao
2024-01-31 75d64eac9135e63cda0c2beb51791109070b2575
quartz/plugins/transformers/ofm.ts
@@ -387,10 +387,7 @@
                  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)