Is it possible to skip tags included in another tag?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Is it possible to skip tags included in another tag?

ctargett
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]"?
Reply | Threaded
Open this post in threaded view
|

Re: Is it possible to skip tags included in another tag?

mojavelinux
Administrator
FYI, this is now possible.


Cheers,

-Dan

On Mon, Oct 3, 2016 at 8:07 AM ctargett [via Asciidoctor :: Discussion] <[hidden email]> wrote:
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]"?


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Is-it-possible-to-skip-tags-included-in-another-tag-tp5036.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux