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.
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for markdown-inline-graphviz-1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6290fdfc4c908b98e2ad2d30a6cff07a26542a2a3247db9b49b1572d91033052 |
|
MD5 | 7d97b3b1888315b9df00a9a82be8c4ef |
|
BLAKE2b-256 | 4774d97a335dcc83bede860ac4562a42124b781e68e9edfcd8218ad62245a2e7 |
Hashes for markdown_inline_graphviz-1.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c4d7f6e6db583f4679cbe13022fddcdfb68b2fe711fdfa05e2d0f99a01aad3a |
|
MD5 | 60373f8c213dca63f2026bde6b9534ef |
|
BLAKE2b-256 | 727b33ffc9612b746421cae47f5d92201f1927481bcec26c4b00620f7e26f85b |