|
As mention in the documentation if I have next document:
// tag::snippets[]
// tag::snippet-a[]
snippet a
// end::snippet-a[]
// tag::snippet-b[]
snippet b
// end::snippet-b[]
// end::snippets[]
And next include macro:
include::file-with-snippets.adoc[tag=snippets]
Then the output is:
snippet a
snippet b
But I would like to be able to do something like:
include::file-with-snippets.adoc[tag=snippets, !snippet-b]
Which would render to:
snippets-a
Of course there is a workaround which is delimited all the sections you need but it is a tedious job and not always possible. I can try to implement it in asciidoctor if you agree it is a good addition.
|