diff --git a/quartz/plugins/transformers/ofm.ts b/quartz/plugins/transformers/ofm.ts index e15db3920..c2e358f7d 100644 --- a/quartz/plugins/transformers/ofm.ts +++ b/quartz/plugins/transformers/ofm.ts @@ -425,7 +425,7 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin const [firstLine, ...remainingLines] = text.split("\n") const remainingText = remainingLines.join("\n") - const calloutContent = node.children.length > 1 ? node.children[1] : undefined + const [_, calloutContent] = node.children.length const match = firstLine.match(calloutRegex) if (match && match.input) {