Render mermaid graphs with Docker service
This library attempts to create Mermaid graphs via the official
mermaid-cli
using the official
Docker image and restricting network access, so that you are sure nothing gets
out and your system is kept isolated from random Node.js deps/files noise all
around the filesystem.
Install it from Melpa or clone and install manually, then:
- Have
mermaid-mode
installed. - Run the install function
M-x mermaid-docker-install
- Activate this mode with
M-x mermaid-docker-mode
- After successful installation
C-c C-c
formermaid-mode
is patched and renders the graphs via Docker container
By default the rendering is set to happen in an external viewer (such as
xviewer
) and can be changed to any other binary or set to render within Emacs
itself via inserting an image into a new buffer.
Make sure to check related defconst
parts of the file to customize.