Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 734 Bytes

README.org

File metadata and controls

26 lines (18 loc) · 734 Bytes

mermaid-layer

Spacemacs layer to initialize ob-mermaid.

Usage

  1. Clone layer into ~/.emacs.d/private:
    git clone [email protected]: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.