Class Asciidoctor::Extensions::BlockProcessor
In: lib/asciidoctor/extensions.rb
Parent: Processor

Public: BlockProcessors are used to handle delimited blocks and paragraphs that have a custom name.

When Asciidoctor encounters a delimited block or paragraph with an unrecognized name while parsing the document, it looks for a BlockProcessor registered to handle this name and, if found, invokes its {Processor#process} method to build a cooresponding node in the document tree.

AsciiDoc example:

  [shout]
  Get a move on.

Recognized options:

  • :named - The name of the block (required: true)
  • :contexts - The blocks contexts on which this style can be used (default: [:paragraph, :open]
  • :content_model - The structure of the content supported in this block (default: :compound)
  • :positional_attributes - A list of attribute names used to map positional attributes (default: nil)

BlockProcessor implementations must extend BlockProcessor.

Methods

new   process  

Attributes

name  [RW] 

Public Class methods

Public Instance methods

[Validate]