mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-05-18 14:34:23 +02:00
no random inline footnote ids
This commit is contained in:
parent
5e2ec38a4b
commit
7e04bb4e6e
@ -225,7 +225,7 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin<Partial<Options>>
|
||||
const result = (src as string).replace(
|
||||
inlineFootnoteRegex,
|
||||
(_match: string, content: string) => {
|
||||
const id = `inline-${Math.random().toString(36).substring(2, 8)}`
|
||||
const id = `inline-${Object.keys(footnotes).length + 1}`
|
||||
footnotes[id] = content.trim()
|
||||
return `[^${id}]`
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user