pymdown-nomnoml

A PyMdown extension to format pymdown_nomnoml as an inline SVG


Keywords
mkdocs, pymdown, nomnoml
License
MIT
Install
pip install pymdown-nomnoml==0.1.0

Documentation

PyMdown pymdown_nomnoml plugin Build Status

A PyMdown extension to render pymdown_nomnoml diagrams

The pymdown_nomnoml extension will render any superfence using pymdown_nomnoml into an SVG image. This provides a simple way to add diagrams in your documentation files in a readable syntax.

Installation

Install the package with pip:

pip install pymdown-pymdown_nomnoml

Enable the extension in your mkdocs.yml:

markdown_extensions:
    - pymdownx.superfences:
        custom_fences:
            - name: pymdown_nomnoml
              class: pymdown_nomnoml-diagram
              format: !!python/name:pymdown_nomnoml.fence_nomnoml_svg_b64

Example

You can now use the nomnoml extension like this:

# Document

This is a short diagram

``` nomnoml
[a] - [b]
[b] -> [c]
```

When building, the code block will be replaced by an SVG version of the diagram. Note that there are some limitations of the SVG renderer.

Contributing

From reporting a bug to submitting a pull request: every contribution is appreciated and welcome. Report bugs, ask questions and request features using Github issues. If you want to contribute to the code of this project, please read the Contribution Guidelines.