svgbob extension for Python Markdown
Project description
markdown-svgbob
This is an extension for Python Markdown which renders diagrams using svgbob.
You can try it out using the Svgbob Editor.
Project/Repo:
Code Quality/CI:
Name | role | since | until |
---|---|---|---|
Manuel Barkhau (mbarkhau@gmail.com) | author/maintainer | 2019-04 | - |
Install
$ pip install markdown-svgbob
This package includes the following binaries:
svgbob_0.4.1_x86_64-Darwin
svgbob_0.4.1_x86_64-Linux
svgbob_0.4.1_x86_64-Windows
If you are on another platform, or want to use a more recent version of svgbob_cli
, you will need to install rust and then svgbob via cargo.
$ curl https://sh.rustup.rs -sSf | sh # see https://rustup.rs/
$ cargo install svgbob_cli
Usage
In your markdown text you can define the block:
```bob
.---.
/-o-/--
.-/ / /->
( * \/
'-. \
\ /
'
```
The info string bob
is chosen to match spongedown.
Development/Testing
$ git clone https://gitlab.com/mbarkhau/markdown-svgbob
$ cd markdown-svgbob
$ make install
$ make lint mypy test
MkDocs Integration
In your mkdocs.yml
add this to markdown_extensions.
markdown_extensions:
- markdown_svgbob:
tag_type: inline_svg
Valid options for tag_type
are inline_svg
(the default), img_utf8_svg
and img_base64_svg
.
Changelog for https://gitlab.com/mbarkhau/markdown-svgbob
v201904.0004-beta
- Initial release
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
Built Distribution
Close
Hashes for markdown-svgbob-201904.4b0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59ab6bc828550ba38ca2619b7a4c9251f1708ee67725fe385271c2ae3940a18e |
|
MD5 | 21d4b5fb54d55ad1bf21a1649cd57266 |
|
BLAKE2b-256 | d34cef5311cb8bfbea2448b338717883bf6a26bce040bc64d364a06e3390e218 |
Close
Hashes for markdown_svgbob-201904.4b0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d6fcb45011eca399968402d944ab3a048c058e682b2d9a3dcc06534da679934 |
|
MD5 | 06e96c8bf537e84702202dfe0bd15519 |
|
BLAKE2b-256 | c56a99afba8d48473bfe2a2c71bd87b684542e9daf6b406847bc9c67396db639 |