From 84349af6dd128f8da7a29febcc86f4939f328ec9 Mon Sep 17 00:00:00 2001 From: Aaron Pham Date: Mon, 3 Mar 2025 01:45:28 -0500 Subject: [PATCH] Apply suggestions from code review --- quartz/plugins/transformers/ofm.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}]` },