add support for mermaid-mode which give org-babel support for free

This commit is contained in:
Peter Tillemans 2025-02-04 18:56:40 +01:00
parent b644b412a0
commit f3e304cf00

View file

@ -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: