On Wed, Sep 3, 2014 at 3:13 AM, ysb33r [via Asciidoctor :: Discussion] <[hidden email]> wrote:
The reason for the 'toc' being in build.gradle is that I want to have control depending on which backend I was writing to.
The solution here is to add an @ to the end of the attribute value. That tells Asciidoctor to allow the document to override (change the value or unset) a value passed to the API. If the attribute does not have a value, then use @ as the whole value.
Unfortunately, the @ trick doesn't work with unsetting an attribute. We can't fix that until we move to a proper internal model for managing attributes...because we have no way to track it otherwise. Eventually, this syntax will work for all cases.