Skip to content

Commit

Permalink
Drop priority in md_admonition.py one more
Browse files Browse the repository at this point in the history
Ensures admonition priority < include priority
  • Loading branch information
d7919 authored Nov 12, 2024
1 parent 39b8dba commit 8471f19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ford/md_admonition.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ def extendMarkdown(self, md):
"""Add Admonition to Markdown instance."""
md.registerExtension(self)
md.parser.blockprocessors.deregister("admonition", strict=False)
md.preprocessors.register(AdmonitionPreprocessor(md), "admonition-pre", 101)
md.preprocessors.register(AdmonitionPreprocessor(md), "admonition-pre", 100)
md.parser.blockprocessors.register(
FordAdmonitionProcessor(md.parser), "admonition", 101
FordAdmonitionProcessor(md.parser), "admonition", 100
)


Expand Down

0 comments on commit 8471f19

Please sign in to comment.