Fixed #407. Add a :noexport_reveal: tag

to skip headings for reveal only.
This commit is contained in:
Yujie Wen 2020-03-28 00:36:19 +08:00
parent 0526680824
commit ea8b502170
2 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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