markdown-graphviz-inline is a Python-Markdown extension that enables rendering Graphviz DOT language diagrams directly within Markdown documents. It automatically detects ````graphviz ... ```` code blocks and replaces them with inline SVG images. This library is a Python 3 fork and continuation of the original `markdown-inline-graphviz` by Cesare Morel, currently maintained under the Backstage organization. Its current version is 1.1.3, with updates occurring on an as-needed basis.
pip install markdown-graphviz-inlineVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to parse Markdown text containing ````graphviz ... ```` blocks using the `markdown_inline_graphviz` extension and print the resulting HTML. This requires the Graphviz 'dot' executable to be installed on your system.
Install Graphviz via your system's package manager (e.g., `sudo apt-get install graphviz` on Debian/Ubuntu, `brew install graphviz` on macOS, or download from graphviz.org) and ensure its executables are in your system's PATH.
Ensure `extensions=['markdown_inline_graphviz']` is used exactly as shown in your `markdown.markdown` call.
Verify behavior with existing markdown files and ensure Python 3 compatibility if migrating from the original `markdown-inline-graphviz`.