Update quartz/plugins/transformers/ofm.ts

Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
This commit is contained in:
Emile Bangma 2024-06-12 23:24:55 +02:00 committed by GitHub
parent 1c04c6febd
commit 064fc5570c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -425,7 +425,7 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin<Partial<Options>
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) {