Skip to content

Commit

Permalink
Merge pull request #34 from wowhxj/main
Browse files Browse the repository at this point in the history
d2 has no shorthand flag 'o'. Update to support org-src.
  • Loading branch information
andorsk authored Dec 13, 2022
2 parents fca8da2 + 87c3b2f commit d57d540
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions d2-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@
(error "D2 requires a \":file\" header argument")))
(temp-file (org-babel-temp-file "d2-"))
(cmd (concat (shell-quote-argument d2-location)
" -o " (org-babel-process-file-name out-file)
" -i " temp-file
" " temp-file
" " (org-babel-process-file-name out-file)
" " d2-flags)))
(with-temp-file temp-file (insert body))
(org-babel-eval cmd "")
Expand Down

0 comments on commit d57d540

Please sign in to comment.