Skip to main content

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.

Installation

$ pip install markdown-inline-graphviz

Usage

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

markdown_extensions:
    - inline_graphviz

To use it in your Markdown doc:

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

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

Credits

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

License

MIT License

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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 2

File details

Details for the file markdown-inline-graphviz-1.0.tar.gz.

File metadata

File hashes

Hashes for markdown-inline-graphviz-1.0.tar.gz
Algorithm Hash digest
SHA256 6290fdfc4c908b98e2ad2d30a6cff07a26542a2a3247db9b49b1572d91033052
MD5 7d97b3b1888315b9df00a9a82be8c4ef
BLAKE2b-256 4774d97a335dcc83bede860ac4562a42124b781e68e9edfcd8218ad62245a2e7

See more details on using hashes here.

File details

Details for the file markdown_inline_graphviz-1.0-py2-none-any.whl.

File metadata

File hashes

Hashes for markdown_inline_graphviz-1.0-py2-none-any.whl
Algorithm Hash digest
SHA256 5c4d7f6e6db583f4679cbe13022fddcdfb68b2fe711fdfa05e2d0f99a01aad3a
MD5 60373f8c213dca63f2026bde6b9534ef
BLAKE2b-256 727b33ffc9612b746421cae47f5d92201f1927481bcec26c4b00620f7e26f85b

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page