Skip to main content
Help us improve Python packaging – donate today!

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

Release history Release notifications

This version
History Node


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
markdown_inline_graphviz-1.0-py2-none-any.whl (3.8 kB) Copy SHA256 hash SHA256 Wheel py2 Nov 27, 2015
markdown-inline-graphviz-1.0.tar.gz (2.6 kB) Copy SHA256 hash SHA256 Source None Nov 27, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page