+ ... +
+ """); + } + + @Test + public void shouldConvertUsingAsciidocTag() { + Engine engine = Engine.builder().addDefaults() + .addSectionHelper(new AsciidocSectionHelperFactory()).build(); + + String result = engine.parse("{#asciidoc}...{/asciidoc}").render(); + + assertThat(result).contains(""" ++ ... +
+ """); + } + + @Test + public void testH1() { + Engine engine = Engine.builder().addDefaults() + .addSectionHelper(new AsciidocSectionHelperFactory()).build(); + + String result = engine.parse("{#ascii}= Quarkus and Roq{/ascii}").render(); + + assertThat(result).contains("+ an apple as a list item +
++ an banana as a list item +
++ an cherry as a list item +
+