improve asciidoctor markup builder logic