This is an extension for Python Markdown which renders diagrams using aafigure.
Project/Repo:
Code Quality/CI:
INFO: You may want to consider using the markdown-svgbob extension instead of this one. svgbob has an online editor and supports a wider range of shapes and diagrams. Its main disadvantage is that it "only" has builtin support for x86_64 on Windows, Linux and Mac, in contrast to aafigure which is pure python and supported everywhere.
$ pip install markdown-aafigure $ pip install Pillow # only if you want to render as png
In your markdown text you can define the block:
```aafigure
+-----+ ^
| | |
--->+ +---o--->
| | |
+-----+ V
```
Parameters can be set for individual figures. Availabale parameters
```aafigure {"foreground": "#ff0000"}
+-----+ ^
| | |
--->+ +---o--->
| | |
+-----+ V
```
$ git clone https://gitlab.com/mbarkhau/markdown_aafigure $ cd markdown_aafigure $ make install $ make lint mypy test
In your mkdocs.yml
add this to markdown_extensions.
markdown_extensions: - markdown_aafigure: tag_type: inline_svg
Valid options for tag_type
are inline_svg
(the default), img_utf8_svg
, img_base64_svg
, img_base64_png
.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4