Login  Register

Is it possible to skip tags included in another tag?

Posted by ctargett on Oct 03, 2016; 2:07pm
URL: https://discuss.asciidoctor.org/Is-it-possible-to-skip-tags-included-in-another-tag-tp5036.html

I have some content that will be reused by other tech writers on a different product, and they pull parts of the original document with tags. I have a document that looks like this:

// tag::section1[]
Intro to a feature.

//tag::subsection1[]
Stuff about using the feature one way.
//end::subsection1[]

//tag::subsection2[]
Stuff about using the feature another way.
//end::subsection2[]

//end::section1[]

Is it possible for me to define an include that gets everything in section1, skipping subsection1 since that's not relevant to the other product? Something like "include::doc.adoc[tags=section1,-subsection1]"?