mirror of https://github.com/yjwen/org-reveal.git
Fixed #291. Add an option for embedding reveal.js initialization JS
This commit is contained in:
parent
b7d783b27b
commit
dc946bc4d7
|
@ -62,6 +62,7 @@
|
|||
(:reveal-theme "REVEAL_THEME" nil org-reveal-theme t)
|
||||
(:reveal-extra-css "REVEAL_EXTRA_CSS" nil org-reveal-extra-css newline)
|
||||
(:reveal-extra-js "REVEAL_EXTRA_JS" nil org-reveal-extra-js nil)
|
||||
(:reveal-extra-initial-js "REVEAL_EXTRA_INITIAL_JS" nil org-reveal-extra-initial-js newline)
|
||||
(:reveal-hlevel "REVEAL_HLEVEL" nil nil t)
|
||||
(:reveal-title-slide "REVEAL_TITLE_SLIDE" "reveal_title_slide" org-reveal-title-slide newline)
|
||||
(:reveal-slide-global-header nil "reveal_global_header" org-reveal-global-header t)
|
||||
|
@ -173,6 +174,12 @@ slide, where the following escaping elements are allowed:
|
|||
:group 'org-export-reveal
|
||||
:type 'string)
|
||||
|
||||
(defcustom org-reveal-extra-initial-js
|
||||
""
|
||||
"Scripts to be embedded into reveal.js initialization."
|
||||
:group 'org-export-reveal
|
||||
:type 'string)
|
||||
|
||||
(defcustom org-reveal-extra-css
|
||||
""
|
||||
"URL to extra css file."
|
||||
|
@ -710,6 +717,8 @@ transitionSpeed: '%s',\n"
|
|||
(plist-get info :reveal-multiplex-id)
|
||||
(plist-get info :reveal-multiplex-url)))
|
||||
|
||||
(if-format "%s,\n" (plist-get info :reveal-extra-initial-js))
|
||||
|
||||
;; optional JS library heading
|
||||
(if in-single-file ""
|
||||
(concat
|
||||
|
|
Loading…
Reference in New Issue