Skip to content

Commit

Permalink
fix ts errors
Browse files Browse the repository at this point in the history
  • Loading branch information
yaoer committed Feb 21, 2025
1 parent 1ebe312 commit aae897a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quartz/plugins/transformers/ofm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}]`
Expand Down

0 comments on commit aae897a

Please sign in to comment.