eliminate warnings about how we register the pydot markdown extension

This commit is contained in:
Brian S. Stephan 2021-11-03 14:16:18 -05:00
parent a700470067
commit be6d96273c
1 changed files with 2 additions and 3 deletions

View File

@ -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):