|
We have some very heavily conditionalized documents, and it's not uncommon for contributors to improperly terminate a conditional in a way that makes the rest of the document build incorrectly as a result (for example, using ifdef::condition[] where endif::condition[] is needed, or just leaving out the endif:: completely). This seems like something straightforward for asciidoctor to detect at end of processing - presumably it's got some sort of stack of conditions and if the stack isn't empty at document end, something is wrong in the markup. Is there some way to do this already, or is it a feature request there would be any appetite for? Ideally asciidoctor -v would emit an ERROR, or at least a WARN, about this.
|