/mermaid-layer

Spacemacs layer for ob-mermaid

Primary LanguageEmacs Lisp

mermaid-layer

Spacemacs layer to initialize ob-mermaid.

Usage

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