Recognize Org bable header arguments when exporting

For this, `org-export-use-babel` has to be non-nil.  To still inhibit source
block evaluation on export (both for performance and for security reasons), set
`:eval` to `never-export` by default.
This commit is contained in:
Daniel - 2023-03-01 20:35:15 +01:00
parent 7fb9b84449
commit 4e10c06799
No known key found for this signature in database
GPG Key ID: 784AA8DF0CCDF625
1 changed files with 3 additions and 2 deletions

View File

@ -1370,14 +1370,15 @@ point to the beginning of buffer first."
;; Babel
(use-package ob-core
:init (setq org-export-use-babel nil
:init (setq org-export-use-babel t
org-babel-default-header-args '((:session . "none")
(:results . "output code replace")
(:exports . "both")
(:cache . "no")
(:noweb . "no")
(:hlines . "no")
(:tangle . "no"))))
(:tangle . "no")
(:eval . "never-export"))))
(use-package ob-sql
:config (progn