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
15
init.org
15
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
|
**** Support Mermaid Diagrams in Babel Blocks
|
||||||
|
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
;; enable mermaid for org-babel
|
;; enable mermaid for org-babel
|
||||||
(use-package ob-mermaid
|
(use-package mermaid-mode
|
||||||
:ensure t
|
:ensure t
|
||||||
:demand t
|
:demand t
|
||||||
:config
|
:mode "\\.mmd\\'")
|
||||||
(message "configuring ob-mermaid")
|
|
||||||
(org-babel-do-load-languages
|
|
||||||
'org-babel-load-languages
|
|
||||||
(add-to-list 'org-babel-load-languages '(mermaid . t))))
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
#+RESULTS:
|
#+RESULTS:
|
||||||
|
|
Loading…
Add table
Reference in a new issue