Spacemacs layer to initialize ob-mermaid.
- Clone layer into
~/.emacs.d/private
:git clone git@github.com:arnm/mermaid-layer.git ~/.emacs.d/private/mermaid
- Add
mermaid
layer todotspacemacs-configuration-layers
- Specify
mmdc
executable path:(setq ob-mermaid-cli-path "/your-installating-path/node_modules/.bin/mmdc")
- Open
org-mode
buffer and create aorg-babel
source block:sequenceDiagram A-->B: Works!
- Exporting the org-mode document or invoking the
org-babel-execute-src-block
function to generate diagram.