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

Metadata

Release files for markdown-inline-graphviz 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for markdown-inline-graphviz 1.0
File Size Uploaded
markdown-inline-graphviz-1.0.tar.gz 2.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for markdown-inline-graphviz 1.0
File Interpreter ABI Platform
markdown_inline_graphviz-1.0-py2-none-any.whl Python 2 none any Details

Total release size: 6.4 kB

Release files / markdown-inline-graphviz-1.0.tar.gz

Download URL markdown-inline-graphviz-1.0.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
6290fdfc4c908b98e2ad2d30a6cff07a26542a2a3247db9b49b1572d91033052
BLAKE2b-256 checksum
How to use checksums
4774d97a335dcc83bede860ac4562a42124b781e68e9edfcd8218ad62245a2e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / markdown_inline_graphviz-1.0-py2-none-any.whl

Download URL markdown_inline_graphviz-1.0-py2-none-any.whl
Size 3.8 kB
Tags Python 2
SHA-256 checksum
How to use checksums
5c4d7f6e6db583f4679cbe13022fddcdfb68b2fe711fdfa05e2d0f99a01aad3a
BLAKE2b-256 checksum
How to use checksums
727b33ffc9612b746421cae47f5d92201f1927481bcec26c4b00620f7e26f85b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page