Skip to content

Python Markdown extension that converts inline dot graph definitions to images

Notifications You must be signed in to change notification settings

jrd/markdown-dot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

What is it

A Python Markdown extension that replaces inline dot graph defintions with an image tag pointing to the generated graph image.

Installation

Checkout and easy_install or pip install it:

$ git clone git://github.com/jrd/markdown-dot.git
$ cd markdown-dot
$ easy_install .

Usage

Activate the dot extension and place the graph defintions in your markup like so:

{% dot output.png
	digraph G {
		rankdir=LR
		S0 -> A [label="-"]
		A -> B [label="-"]
		A -> C [label=">"]

		A [peripheries=2]
		B [peripheries=2]
		C [peripheries=2]
	}
%}

The block above will then be replaced with an img tag pointing to the generated png file.

If the file name starts with a !, the image will still be generated but no img tag will be included in the result.

Troubleshooting

Please consider using Github issues tracker to submit bug reports or feature requests.

License

MIT License

About

Python Markdown extension that converts inline dot graph definitions to images

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%