From 7917211a2313bfb06e9c5b38af792b7884e7796b Mon Sep 17 00:00:00 2001 From: yujie Date: Mon, 9 May 2016 15:25:53 +0800 Subject: [PATCH 1/5] Fixed #164. Support #+HTML tag also. --- ox-reveal.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ox-reveal.el b/ox-reveal.el index 9942d84..ce1c95e 100644 --- a/ox-reveal.el +++ b/ox-reveal.el @@ -789,7 +789,8 @@ CONTENTS is nil. INFO is a plist holding contextual information." (value (org-element-property :value keyword))) (case (intern key) (REVEAL (org-reveal-parse-keyword-value value)) - (REVEAL_HTML value)))) + (REVEAL_HTML value) + (HTML value)))) (defun org-reveal-embedded-svg (path) "Embed the SVG content into Reveal HTML." (with-temp-buffer From 4e3cc6d4fd897be2b49a77823301426d6750557b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Gonz=C3=A1lez=20Sotillo?= Date: Mon, 30 May 2016 21:21:56 +0200 Subject: [PATCH 2/5] 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 --- ox-reveal.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ox-reveal.el b/ox-reveal.el index ce1c95e..f793def 100644 --- a/ox-reveal.el +++ b/ox-reveal.el @@ -684,9 +684,9 @@ dependencies: [ (append (list extra-codes) builtin-codes)))) (mapconcat 'identity total-codes ",\n")) "]\n" + )) (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\n"))) (defun org-reveal-toc (depth info) From 84a445ce48e996182fde6909558824e154b76985 Mon Sep 17 00:00:00 2001 From: yujie Date: Tue, 31 May 2016 16:11:29 +0800 Subject: [PATCH 3/5] Fixed #205, fixed an error at calling org-html-format-spec --- ox-reveal.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ox-reveal.el b/ox-reveal.el index ce1c95e..9e262cc 100644 --- a/ox-reveal.el +++ b/ox-reveal.el @@ -1021,7 +1021,7 @@ info is a plist holding export options." (concat " data-background-transition=\"" title-slide-background-transition "\"")) ">" (cond ((eq title-slide nil) nil) - ((stringp title-slide) (format-spec title-slide (org-html-format-spec))) + ((stringp title-slide) (format-spec title-slide (org-html-format-spec info))) ((eq title-slide 'auto) (org-reveal--auto-title-slide-template info))) "\n\n")))) contents From c71f293be24800489a94d1c42c883d95ed7c241a Mon Sep 17 00:00:00 2001 From: Emil Vatai Date: Fri, 17 Jun 2016 10:43:09 +0200 Subject: [PATCH 4/5] Add attributes to the tag Added the possibility to add attributes to the code tag for code blocks which make the following code export with the highlighting as described in: https://github.com/hakimel/reveal.js/#code-syntax-highlighting Example code: #+ATTR_REVEAL: :code_attribs data-noescape #+BEGIN_SRC python def implies(X,Y): return (not X) or Y #+END_SRC --- ox-reveal.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ox-reveal.el b/ox-reveal.el index 9e262cc..1dbb8b3 100644 --- a/ox-reveal.el +++ b/ox-reveal.el @@ -923,6 +923,8 @@ contextual information." #'buffer-substring)) (org-html-format-code src-block info)))) (frag (org-export-read-attribute :attr_reveal src-block :frag)) + (code-attribs (or (org-export-read-attribute + :attr_reveal src-block :code_attribs) "")) (label (let ((lbl (org-element-property :name src-block))) (if (not lbl) "" (format " id=\"%s\"" lbl))))) @@ -937,9 +939,9 @@ contextual information." (format "" (org-export-data caption info))) (if use-highlight - (format "\n%s" + (format "\n%s" (or (frag-class frag info) "") - label lang code) + label lang code-attribs code) (format "\n
%s
" (or (frag-class frag info) (format " class=\"src src-%s\"" lang)) From 44bb75db1fb7ff8b6e438384a3f094ab3543e6fc Mon Sep 17 00:00:00 2001 From: yujie Date: Wed, 22 Jun 2016 14:50:49 +0800 Subject: [PATCH 5/5] Fixed #206: Allow multiple lines of REVEAL_HEAD_PREAMBLE --- ox-reveal.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ox-reveal.el b/ox-reveal.el index 9e262cc..624d5a9 100644 --- a/ox-reveal.el +++ b/ox-reveal.el @@ -70,7 +70,7 @@ (:reveal-title-slide-background-transition "REVEAL_TITLE_SLIDE_BACKGROUND_TRANSITION" nil nil t) (:reveal-mathjax-url "REVEAL_MATHJAX_URL" nil org-reveal-mathjax-url t) (:reveal-preamble "REVEAL_PREAMBLE" nil org-reveal-preamble t) - (:reveal-head-preamble "REVEAL_HEAD_PREAMBLE" nil org-reveal-head-preamble t) + (:reveal-head-preamble "REVEAL_HEAD_PREAMBLE" nil org-reveal-head-preamble newline) (:reveal-postamble "REVEAL_POSTAMBLE" nil org-reveal-postamble t) (:reveal-multiplex-id "REVEAL_MULTIPLEX_ID" nil org-reveal-multiplex-id nil) (:reveal-multiplex-secret "REVEAL_MULTIPLEX_SECRET" nil org-reveal-multiplex-secret nil)