extracted code for options and asciidoctor extension