eliminate warnings about how we register the pydot markdown extension
This commit is contained in:
parent
a700470067
commit
be6d96273c
@ -12,10 +12,9 @@ logger = logging.getLogger(__name__)
|
|||||||
class InlinePydot(markdown.Extension):
|
class InlinePydot(markdown.Extension):
|
||||||
"""Wrap the markdown prepcoressor."""
|
"""Wrap the markdown prepcoressor."""
|
||||||
|
|
||||||
def extendMarkdown(self, md, md_globals):
|
def extendMarkdown(self, md):
|
||||||
"""Add InlinePydotPreprocessor to the Markdown instance."""
|
"""Add InlinePydotPreprocessor to the Markdown instance."""
|
||||||
md.registerExtension(self)
|
md.preprocessors.register(InlinePydotPreprocessor(md), 'dot_block', 100)
|
||||||
md.preprocessors.add('dot_block', InlinePydotPreprocessor(md), '_begin')
|
|
||||||
|
|
||||||
|
|
||||||
class InlinePydotPreprocessor(markdown.preprocessors.Preprocessor):
|
class InlinePydotPreprocessor(markdown.preprocessors.Preprocessor):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user