asciidoc.extenstions.nested-open-block.rb Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of doc-maven-plugin Show documentation
Show all versions of doc-maven-plugin Show documentation
Common machinery for generating core documentation from DocBook XML sources
The newest version!
# A custom block that allows open blocks to be nested using the
# example block container with the open block style.
#
# Usage:
#
# [open]
# ====
# [open]
# ======
# nested
# ======
# ====
Asciidoctor::Extensions.register do
block do
named :open
on_context :example
process do |parent, reader, attrs|
create_open_block parent, attrs
end
end
end