diff --git a/asciidoctor-parser-doxia-module/src/it/maven-site-plugin/src/site/asciidoc/sample.adoc b/asciidoctor-parser-doxia-module/src/it/maven-site-plugin/src/site/asciidoc/sample.adoc index 880c00ab..f1edc352 100644 --- a/asciidoctor-parser-doxia-module/src/it/maven-site-plugin/src/site/asciidoc/sample.adoc +++ b/asciidoctor-parser-doxia-module/src/it/maven-site-plugin/src/site/asciidoc/sample.adoc @@ -91,3 +91,16 @@ Linux::: BSD::: . FreeBSD . NetBSD + +=== Examples + +.Optional title (1) +==== +This is an example of an example block (1). +==== + +.Optional title (2) +[example] +This is an example of an example block (2). +*dadsas* https://dasd.com + diff --git a/asciidoctor-parser-doxia-module/src/it/maven-site-plugin/validate.groovy b/asciidoctor-parser-doxia-module/src/it/maven-site-plugin/validate.groovy index 6d7d5b50..5dcbbda1 100644 --- a/asciidoctor-parser-doxia-module/src/it/maven-site-plugin/validate.groovy +++ b/asciidoctor-parser-doxia-module/src/it/maven-site-plugin/validate.groovy @@ -58,6 +58,10 @@ new HtmlAsserter(htmlContent).with { asserter -> asserter.containsUnorderedList("Desktop", "Server") asserter.descriptionListTerm("BSD") asserter.containsOrderedList("FreeBSD", "NetBSD") + + asserter.containsSectionTitle("Examples", 3) + asserter.containsExampleDiv() + asserter.containsExampleDiv() } String strong(String text) { @@ -224,8 +228,15 @@ class HtmlAsserter { } } + void containsExampleDiv() { + final def key = "