fix ts errors

This commit is contained in:
sss 2025-02-21 01:16:13 +01:00
parent 1ebe312d09
commit aae897a0d5

View File

@ -222,7 +222,7 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin<Partial<Options>>
const footnotes: Record<string, string> = {} const footnotes: Record<string, string> = {}
// Replace inline footnotes with references and collect definitions // 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)}` const id = `inline-${Math.random().toString(36).substring(2, 8)}`
footnotes[id] = content.trim() footnotes[id] = content.trim()
return `[^${id}]` return `[^${id}]`