Skip to content

Commit

Permalink
Prioritizing macros above other inline patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
benbdeitch authored Jul 24, 2024
1 parent d918e18 commit 9aee50b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion infogami/utils/macro.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def replace_macros(html, macros):

class MacroExtension(markdown.Extension):
def extendMarkdown(self, md, md_globals):
md.inlinePatterns.append(MacroPattern(md))
md.inlinePatterns.insert(0, MacroPattern(md))
md.macro_count = 0
md.macros = {}

Expand Down

0 comments on commit 9aee50b

Please sign in to comment.