blockdiag extension for Python Markdown
Project description
blockdiag for SuperFences
This provides blockdiag rendering for Python Markdown through the SuperFences extension.
It is based on https://github.com/gisce/markdown-blockdiag.
Install
pip install blockdiag-fences
Use
Wrap your diagram in a code block, tagged with the name of the tool to convert it:
```blockdiag
blockdiag {
A -> B -> C -> D;
A -> E -> F -> G;
}
```
MkDocs Integration
In your mkdocs.yml
add this to markdown_extensions
.
markdown_extensions:
- pymdownx.superfences:
custom_fences:
- name: blockdiag
class: blockdiag
format: !!python/name:blockdiag_fences.blockdiag.fence_img_format
- name: seqdiag
class: seqdiag
format: !!python/name:blockdiag_fences.blockdiag.fence_img_format
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
blockdiag-fences-0.0.1.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for blockdiag_fences-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a22168f0a74ae40234978a55fd4efb09d5a332592a26f0973318aab52166b60 |
|
MD5 | bc532faaf384fc745fea57823d8d7aa3 |
|
BLAKE2b-256 | 85e516c0717cf7e44ceafb2e9b187bace6be160912512780eb5f1c1bf4b2d7be |