All Downloads are FREE. Search and download functionalities are using the official Maven repository.

asciidoc.extenstions.nested-open-block.rb Maven / Gradle / Ivy

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy