Set Boolean Attributes
A boolean attribute is a built-in attribute that acts like a toggle. Its sole function is to turn on a feature or behavior.
A boolean attribute is set using an attribute entry in the header or body of a document.
The value of a boolean value is always empty because boolean attributes in AsciiDoc only accept an empty string value.
In AsciiDoc, an attribute that is set, but has an empty value, is interpreted as the true state and an attribute which is not set is interpreted as the false state.
However, a processor may interpret a value of
true as the true state as well.
|1||On a new line, type a colon (
Let’s use an attribute entry to turn on the built-in boolean attribute named
sectanchors is set, it activates an anchor in front of a section title when a cursor hovers over it.
= Document Title :sectanchors: (1)
|1||The value of