Inline blockdiag images for Markdown with SuperFences
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: actdiag
class: actdiag
format: !!python/name:blockdiag_fences.blockdiag.fence_img_format
- name: blockdiag
class: blockdiag
format: !!python/name:blockdiag_fences.blockdiag.fence_img_format
- name: nwdiag
class: nwdiag
format: !!python/name:blockdiag_fences.blockdiag.fence_img_format
- name: packetdiag
class: packetdiag
format: !!python/name:blockdiag_fences.blockdiag.fence_img_format
- name: rackdiag
class: rackdiag
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.3.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for blockdiag_fences-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61b7f3567d9b22748aee358d6c198f7248a4370b5f66032c7d94f19e938b7b6f |
|
MD5 | 467a79fb5699ee073a7e0e16b84e6df8 |
|
BLAKE2b-256 | 174f414e755b28df90a67f09424620e044552c10a5132543b34ec86ad85ab39f |