diff --git a/Readme.org b/Readme.org index e047b05..7ec5ca7 100644 --- a/Readme.org +++ b/Readme.org @@ -825,6 +825,10 @@ This feature is turned off by default and needs to be switched on with ~org-reve without the title slide and the table of content, for a quick preview of your current edition. +** Skip headings +Any heading with tag ~:noexport:~ will be discarded when exporting to +all backends. If you want a heading being discard when exporting to +Reveal.js only, please use tag ~:noexport_reveal:~. * Tips ** Managing Table of Contents diff --git a/ox-reveal.el b/ox-reveal.el index 13cf462..ab940c2 100644 --- a/ox-reveal.el +++ b/ox-reveal.el @@ -1281,8 +1281,9 @@ transformed fragment attribute to ELEM's attr_html plist." (clientfile (org-export-output-file-name (concat "_client" extension) subtreep))) ; export filename_client HTML file if multiplexing (setq client-multiplex nil) - (setq retfile (org-export-to-file 'reveal file - async subtreep visible-only body-only ext-plist)) + (let ((org-export-exclude-tags (cons "noexport_reveal" org-export-exclude-tags))) + (setq retfile (org-export-to-file 'reveal file + async subtreep visible-only body-only ext-plist))) ; export the client HTML file if client-multiplex is set true ; by previous call to org-export-to-file