Skip to content

Commit

Permalink
Merge pull request #12 from coretl/master
Browse files Browse the repository at this point in the history
Updated to work with Markdown>=3.0
  • Loading branch information
cesaremorel authored Jan 16, 2024
2 parents b34e454 + 1c887a7 commit 739569b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions markdown_inline_graphviz.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,12 @@

class InlineGraphvizExtension(markdown.Extension):

def extendMarkdown(self, md, md_globals):
def extendMarkdown(self, md):
""" Add InlineGraphvizPreprocessor to the Markdown instance. """
md.registerExtension(self)

md.preprocessors.add('graphviz_block',
InlineGraphvizPreprocessor(md),
"_begin")
md.preprocessors.register(
InlineGraphvizPreprocessor(md), 'graphviz_block', 40
)


class InlineGraphvizPreprocessor(markdown.preprocessors.Preprocessor):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
name="markdown_inline_graphviz_extension",
version=VERSION,
py_modules=["markdown_inline_graphviz"],
install_requires=['Markdown>=2.3.1'],
install_requires=['Markdown>=3.0'],
author="Cesar Morel",
author_email="cesaremoreln@gmail.com",
description="Render inline graphs with Markdown and Graphviz (python3 version)",
Expand Down

0 comments on commit 739569b

Please sign in to comment.