Fixed #462. Remove the redundant :reveal-init-script

This commit is contained in:
Yujie Wen 2021-10-29 22:54:46 +08:00
parent a995a9cf4c
commit a020ef3318
2 changed files with 3 additions and 10 deletions

View File

@ -900,8 +900,8 @@ To disable the automatic TOC, add =toc:nil= to =#+OPTIONS=
** Custom JS
To pass custom JS code to ~Reveal.initialize~, state the code by
~#+REVEAL_INIT_SCRIPT~ (multiple statements are concatenated) or by
custom variable ~org-reveal-init-script~.
~#+REVEAL_EXTRA_INITIAL_JS~ (multiple statements are concatenated) or by
custom variable ~org-reveal-extra-initial-js~.
If you want to add extra code outside of the ~Reveal.initialize~
block, then ~#+REVEAL_EXTRA_SCRIPT~ can be used. The code will be

View File

@ -99,7 +99,6 @@
(:reveal-external-plugins "REVEAL_EXTERNAL_PLUGINS" nil nil space)
(:reveal-default-frag-style "REVEAL_DEFAULT_FRAG_STYLE" nil org-reveal-default-frag-style t)
(:reveal-single-file nil "reveal_single_file" org-reveal-single-file t)
(:reveal-init-script "REVEAL_INIT_SCRIPT" nil org-reveal-init-script space)
(:reveal-extra-script "REVEAL_EXTRA_SCRIPT" nil org-reveal-extra-script space)
(:reveal-init-options "REVEAL_INIT_OPTIONS" nil org-reveal-init-options newline)
(:reveal-highlight-css "REVEAL_HIGHLIGHT_CSS" nil org-reveal-highlight-css nil)
@ -315,11 +314,6 @@ Example:
:group 'org-export-reveal
:type 'boolean)
(defcustom org-reveal-init-script nil
"Custom script that will be passed to Reveal.initialize."
:group 'org-export-reveal
:type 'string)
(defcustom org-reveal-extra-script nil
"Custom script that will be passed added to the script block, after Reveal.initialize."
:group 'org-export-reveal
@ -795,8 +789,7 @@ custom variable `org-reveal-root'."
(extra-initial-js-statement (plist-get info :reveal-extra-initial-js))
(legacy-dependency-statement
(unless (or in-single-file (eq version 4))
(org-reveal--legacy-dependency root-path plugins info)))
(init-script-statement (plist-get info :reveal-init-script)))
(org-reveal--legacy-dependency root-path plugins info))))
(format "
<script>
// Full list of configuration options available here: