add support for mermaid-mode which give org-babel support for free
This commit is contained in:
parent
b644b412a0
commit
f3e304cf00
1 changed files with 6 additions and 9 deletions
9
init.org
9
init.org
|
@ -2344,16 +2344,13 @@ testing in my [[file:~/org/snamellit/testfile.org::*User Journey Graph][org babe
|
|||
|
||||
**** Support Mermaid Diagrams in Babel Blocks
|
||||
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
;; enable mermaid for org-babel
|
||||
(use-package ob-mermaid
|
||||
(use-package mermaid-mode
|
||||
:ensure t
|
||||
:demand t
|
||||
:config
|
||||
(message "configuring ob-mermaid")
|
||||
(org-babel-do-load-languages
|
||||
'org-babel-load-languages
|
||||
(add-to-list 'org-babel-load-languages '(mermaid . t))))
|
||||
:mode "\\.mmd\\'")
|
||||
#+END_SRC
|
||||
|
||||
#+RESULTS:
|
||||
|
|
Loading…
Add table
Reference in a new issue