diff --git a/quartz/plugins/transformers/ofm.ts b/quartz/plugins/transformers/ofm.ts index c8c069798..43848cda6 100644 --- a/quartz/plugins/transformers/ofm.ts +++ b/quartz/plugins/transformers/ofm.ts @@ -225,13 +225,13 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin> if (opts.enableInlineFootnotes) { // Replaces ^[inline] footnotes with regular footnotes [^1]: const footnotes: Record = {} - let counter = 1 + let counter = 0 // Replace inline footnotes with references and collect definitions const result = (src as string).replace( inlineFootnoteRegex, (_match: string, content: string) => { - const id = `inline-${counter++}` + const id = `generated-inline-footnote-${counter++}` footnotes[id] = content.trim() return `[^${id}]` },