I have recently started playing with the fantastic ob-mermaid (and its companion mermaid-mode) package. Combined with the mermaid CLI, these let you generate mermaid diagrams from org-babel source blocks. ob-mermaid requires a :file argument but I am wondering whether there is a way to redirect this to the default org-attach director?

Here is an example code block:

#+BEGIN_SRC mermaid :file graph_td.svg

graph TD
  start --> stop


Any ideas?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.