mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-05-18 22:44:14 +02:00
fix ts errors
This commit is contained in:
parent
1ebe312d09
commit
aae897a0d5
@ -222,7 +222,7 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin<Partial<Options>>
|
||||
const footnotes: Record<string, string> = {}
|
||||
|
||||
// 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}]`
|
||||
|
Loading…
x
Reference in New Issue
Block a user