diff --git a/incorporealcms/mdx/pydot.py b/incorporealcms/mdx/pydot.py index e644a58..3228b25 100644 --- a/incorporealcms/mdx/pydot.py +++ b/incorporealcms/mdx/pydot.py @@ -12,10 +12,9 @@ logger = logging.getLogger(__name__) class InlinePydot(markdown.Extension): """Wrap the markdown prepcoressor.""" - def extendMarkdown(self, md, md_globals): + def extendMarkdown(self, md): """Add InlinePydotPreprocessor to the Markdown instance.""" - md.registerExtension(self) - md.preprocessors.add('dot_block', InlinePydotPreprocessor(md), '_begin') + md.preprocessors.register(InlinePydotPreprocessor(md), 'dot_block', 100) class InlinePydotPreprocessor(markdown.preprocessors.Preprocessor):