mirror of https://github.com/yjwen/org-reveal.git
REVEAL_INIT_SCRIPT didn't work if reveal_single_file was set
:reveal-init-script should be included even if in-single-file is set
This commit is contained in:
parent
7917211a23
commit
4e3cc6d4fd
|
@ -684,9 +684,9 @@ dependencies: [
|
||||||
(append (list extra-codes) builtin-codes))))
|
(append (list extra-codes) builtin-codes))))
|
||||||
(mapconcat 'identity total-codes ",\n"))
|
(mapconcat 'identity total-codes ",\n"))
|
||||||
"]\n"
|
"]\n"
|
||||||
|
))
|
||||||
(let ((init-script (plist-get info :reveal-init-script)))
|
(let ((init-script (plist-get info :reveal-init-script)))
|
||||||
(if init-script (concat "," init-script)))
|
(if init-script (concat (if in-single-file "" ",") init-script)))
|
||||||
))
|
|
||||||
"});\n</script>\n")))
|
"});\n</script>\n")))
|
||||||
|
|
||||||
(defun org-reveal-toc (depth info)
|
(defun org-reveal-toc (depth info)
|
||||||
|
|
Loading…
Reference in New Issue