diff --git a/quartz/plugins/transformers/ofm.ts b/quartz/plugins/transformers/ofm.ts index 9dfd0dfd7..f34f0a195 100644 --- a/quartz/plugins/transformers/ofm.ts +++ b/quartz/plugins/transformers/ofm.ts @@ -222,7 +222,7 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin> const footnotes: Record = {} // Replace inline footnotes with references and collect definitions - const result = src.replace(inlineFootnoteRegex, (_match, content) => { + const result = (src as string).replace(inlineFootnoteRegex, (_match: string, content: string) => { const id = `inline-${Math.random().toString(36).substring(2, 8)}` footnotes[id] = content.trim() return `[^${id}]`