Skip to main content

Render inline graphs with Markdown and Graphviz

Project description

A Python Markdown extension that replaces inline Graphviz definitions with inline SVGs or PNGs!

Why render the graphs inline? No configuration! Works with any Python-Markdown-based static site generator, such as MkDocs, Pelican, and Nikola out of the box without configuring an output directory.


$ pip install markdown-inline-graphviz


Activate the inline_graphviz extension. For example, with Mkdocs, you add a stanza to mkdocs.yml:

    - inline_graphviz

To use it in your Markdown doc:

{% dot attack_plan.svg
    digraph G {
        Earth [peripheries=2]
        Earth -> Mars

Supported graphviz commands: dot, neato, fdp, sfdp, twopi, circo.


Inspired by jawher/markdown-dot, which renders the dot graph to a file instead of inline.


MIT License

Project details

Release history Release notifications | RSS feed

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

markdown-inline-graphviz-1.0.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distribution

markdown_inline_graphviz-1.0-py2-none-any.whl (3.8 kB view hashes)

Uploaded Python 2

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page