Asciidoctor::Block
Inherits Asciidoctor::AbstractBlock < Asciidoctor::Substitutors < Asciidoctor::AbstractNode < Asciidoctor::Logging < Reference < Object
Methods for managing AsciiDoc content blocks.
Examples
block = Asciidoctor::Block.new(parent, :paragraph, source: "This is a <test>") block.content
=> "This is a <test>"
Constants
DEFAULT_CONTENT_MODEL = {:audio => ContentModel::Empty, :image => ContentModel::Empty, :listing => ContentModel::Verbatim, :literal => ContentModel::Verbatim, :open => ContentModel::Compound, :page_break => ContentModel::Empty, :pass => ContentModel::Raw, :stem => ContentModel::Raw, :thematic_break => ContentModel::Empty, :video => ContentModel::Empty}
Constructors
Instance methods
content
Get the converted result of the child blocks by converting the children appropriate to content model that this block supports.
document
Source