Skip to content
This repository has been archived by the owner on Nov 18, 2024. It is now read-only.

Commit

Permalink
Use .register to register the plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
hodgestar committed Apr 25, 2023
1 parent 6aef729 commit 75ff581
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mdx_outline.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def __init__(self, *args, **kwargs):
def extendMarkdown(self, md):
ext = OutlineProcessor(md)
ext.config = self.config
md.treeprocessors.add('outline', ext, '_end')
md.treeprocessors.register(ext, 'outline', 0)


def makeExtension(configs={}):
Expand Down

0 comments on commit 75ff581

Please sign in to comment.