mirror of https://github.com/yjwen/org-reveal.git
Fixed #462. Remove the redundant :reveal-init-script
This commit is contained in:
parent
a995a9cf4c
commit
a020ef3318
|
@ -900,8 +900,8 @@ To disable the automatic TOC, add =toc:nil= to =#+OPTIONS=
|
||||||
** Custom JS
|
** Custom JS
|
||||||
|
|
||||||
To pass custom JS code to ~Reveal.initialize~, state the code by
|
To pass custom JS code to ~Reveal.initialize~, state the code by
|
||||||
~#+REVEAL_INIT_SCRIPT~ (multiple statements are concatenated) or by
|
~#+REVEAL_EXTRA_INITIAL_JS~ (multiple statements are concatenated) or by
|
||||||
custom variable ~org-reveal-init-script~.
|
custom variable ~org-reveal-extra-initial-js~.
|
||||||
|
|
||||||
If you want to add extra code outside of the ~Reveal.initialize~
|
If you want to add extra code outside of the ~Reveal.initialize~
|
||||||
block, then ~#+REVEAL_EXTRA_SCRIPT~ can be used. The code will be
|
block, then ~#+REVEAL_EXTRA_SCRIPT~ can be used. The code will be
|
||||||
|
|
|
@ -99,7 +99,6 @@
|
||||||
(:reveal-external-plugins "REVEAL_EXTERNAL_PLUGINS" nil nil space)
|
(: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-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-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-extra-script "REVEAL_EXTRA_SCRIPT" nil org-reveal-extra-script space)
|
||||||
(:reveal-init-options "REVEAL_INIT_OPTIONS" nil org-reveal-init-options newline)
|
(:reveal-init-options "REVEAL_INIT_OPTIONS" nil org-reveal-init-options newline)
|
||||||
(:reveal-highlight-css "REVEAL_HIGHLIGHT_CSS" nil org-reveal-highlight-css nil)
|
(:reveal-highlight-css "REVEAL_HIGHLIGHT_CSS" nil org-reveal-highlight-css nil)
|
||||||
|
@ -315,11 +314,6 @@ Example:
|
||||||
:group 'org-export-reveal
|
:group 'org-export-reveal
|
||||||
:type 'boolean)
|
: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
|
(defcustom org-reveal-extra-script nil
|
||||||
"Custom script that will be passed added to the script block, after Reveal.initialize."
|
"Custom script that will be passed added to the script block, after Reveal.initialize."
|
||||||
:group 'org-export-reveal
|
:group 'org-export-reveal
|
||||||
|
@ -795,8 +789,7 @@ custom variable `org-reveal-root'."
|
||||||
(extra-initial-js-statement (plist-get info :reveal-extra-initial-js))
|
(extra-initial-js-statement (plist-get info :reveal-extra-initial-js))
|
||||||
(legacy-dependency-statement
|
(legacy-dependency-statement
|
||||||
(unless (or in-single-file (eq version 4))
|
(unless (or in-single-file (eq version 4))
|
||||||
(org-reveal--legacy-dependency root-path plugins info)))
|
(org-reveal--legacy-dependency root-path plugins info))))
|
||||||
(init-script-statement (plist-get info :reveal-init-script)))
|
|
||||||
(format "
|
(format "
|
||||||
<script>
|
<script>
|
||||||
// Full list of configuration options available here:
|
// Full list of configuration options available here:
|
||||||
|
|
Loading…
Reference in New Issue