pajato0
pajato0

Reputation: 3676

How can one hide some text from being published by the org-publish-* functions?

I would like to put some text into an org file that will not be published when I export the content to one of the target types (HTML in this case). Is there a way I can accomplish this goal?

Upvotes: 2

Views: 2010

Answers (2)

malcook
malcook

Reputation: 1733

COMMENT lines dont get exported. They also display purple in the emacs with default config.

Upvotes: 3

Jonathan Leech-Pepin
Jonathan Leech-Pepin

Reputation: 7884

You likely want to use the :noexport: tag as described in the manual under Selective Export.

The only real limitation here is that you have to have the (sub)heading as the last one at that level.

Alternately you could use inline tasks ( (require 'org-inlinetask) ) and then mark the task and the end-of-task with :noexport: (I tested and with only one it might not properly omit the end of the task).

Upvotes: 4

Related Questions