Re: Hiding Specific Admonition Types
Posted by
mojavelinux on
Dec 23, 2015; 6:48am
URL: https://discuss.asciidoctor.org/Hiding-Specific-Admonition-Types-tp4124p4125.html
I'm so glad to hear that you are liking the project!
I have good news for you. There is a feature that is designed specifically for this purpose. That feature is a conditional directive (aka preprocessor conditional). It allows you to turn on and off sections of content based on the value of an attribute.
For example:
ifdef::show-notes[]
notes goes here
endif::[]
Then do something like:
asciidoctor -a show-notes manual.adoc
This feature is not yet documented in the Asciidoctor User Manual. In the meantime, you can find more information about it in this issue:
Good luck!