aboutsummaryrefslogtreecommitdiff
path: root/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'utils.py')
-rw-r--r--utils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils.py b/utils.py
index 9c2c45a..b19c9d3 100644
--- a/utils.py
+++ b/utils.py
@@ -177,7 +177,7 @@ if markdown:
tag.set("href", new_target)
class RewriteLocalLinksExtension(markdown.Extension):
- def extendMarkdown(self, md, md_globals):
- md.treeprocessors.add(
- "RewriteLocalLinks", RewriteLocalLinks(), "_end"
+ def extendMarkdown(self, md):
+ md.treeprocessors.register(
+ RewriteLocalLinks(), "RewriteLocalLinks", 1000
)