Use CustomNumberingProcessor from https://github.com/hibernate/hibernate-asciidoctor-extensions to make example numbering restart for each section from 1.