\n"
- (if (plist-get info :reveal-title-slide)
+ (if (and (plist-get info :reveal-title-slide)
+ (not (plist-get info :reveal-subtree)))
(concat
(format "\n"
(if-format " data-background=\"%s\""
@@ -1030,6 +1035,15 @@ transformed fragment attribute to ELEM's attr_html plist."
(interactive)
(browse-url-of-file (expand-file-name (org-reveal-export-to-html async subtreep visible-only body-only ext-plist))))
+(defun org-reveal-export-current-subtree
+ (&optional async subtreep visible-only body-only ext-plist)
+ "Export current subtree to a Reveal.js HTML file."
+ (interactive)
+ (org-narrow-to-subtree)
+ (let ((ret (org-reveal-export-to-html async subtreep visible-only body-only (plist-put ext-plist :reveal-subtree t))))
+ (widen)
+ ret))
+
;;;###autoload
(defun org-reveal-publish-to-reveal
(plist filename pub-dir)