Emacs major mode for working with mermaid graphs
- Install from Melpa or load the
mermaid-mode.el
file - Install
mmdc
binary from the mermaid.cli project if you plan to compile graphs in Emacs
Currently supporting flow charts and sequence diagrams with syntax coloring and indentation.
C-c C-c to compile to an image
C-c C-o to open in the live editor
C-c C-d to open the official doc
You can specify the location of mmdc
with the variable mermaid-mmdc-location
, the default assumes you have the binary in your exec PATH.
By default mmdc
will compile to png format. You can change that by setting the variable mermaid-output-format
.
Feel free to open an issue!