Skip to content

Commit 1c887a7

Browse files
committed
Updated to work with Markdown>=3.0
1 parent b34e454 commit 1c887a7

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

markdown_inline_graphviz.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,12 @@
4141

4242
class InlineGraphvizExtension(markdown.Extension):
4343

44-
def extendMarkdown(self, md, md_globals):
44+
def extendMarkdown(self, md):
4545
""" Add InlineGraphvizPreprocessor to the Markdown instance. """
4646
md.registerExtension(self)
47-
48-
md.preprocessors.add('graphviz_block',
49-
InlineGraphvizPreprocessor(md),
50-
"_begin")
47+
md.preprocessors.register(
48+
InlineGraphvizPreprocessor(md), 'graphviz_block', 40
49+
)
5150

5251

5352
class InlineGraphvizPreprocessor(markdown.preprocessors.Preprocessor):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
name="markdown_inline_graphviz_extension",
2323
version=VERSION,
2424
py_modules=["markdown_inline_graphviz"],
25-
install_requires=['Markdown>=2.3.1'],
25+
install_requires=['Markdown>=3.0'],
2626
author="Cesar Morel",
2727
author_email="cesaremoreln@gmail.com",
2828
description="Render inline graphs with Markdown and Graphviz (python3 version)",

0 commit comments

Comments
 (0)