Skip to content

Emacs minor mode to show preview for graphviz, plantuml, mermaid.js

Notifications You must be signed in to change notification settings

natrys/diagram-preview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

diagram-preview-mode

A small minor mode to show preview of diagrams while working with popular text-based diagram/graph creating tools inside Emacs, without requiring respective toolchains to be locally installed. Currently works in:

Disclaimer

Under the hood it simply uses the awesome kroki that provides a unified API for many different backends, along with free access to their own hosted instance.

Sending private code over the wire to 3rd party server might not be your palate, so beware. Note that kroki itself is FOSS and self-hostable, so you could run your own instance and point to that.

Install and Usage

Clone this repo somewhere and then do something like:

(use-package diagram-preview
  :load-path "/path/to/diagram-preview/"
  :ensure nil
  :hook ((graphviz-dot-mode plantuml-mode mermaid-mode pikchr-mode d2-mode) . diagram-preview-mode))

See preview of your current file by calling diagram-preview-show (bound to C-c C-p).

About

Emacs minor mode to show preview for graphviz, plantuml, mermaid.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published