class

Asciidoctor::Extensions::Processor

Inherits Reference < Object

An abstract base class for document and syntax processors.

Instances of the Processor class provide convenience methods for creating AST nodes, such as Block and Inline, and for parsing child content.

Constructors

Instance methods

config

The configuration Hash for this processor instance.

Source
create_anchor(parent : AbstractBlock, text : String | Nil, opts : Hash(String, String | Symbol) = {} of String => String | Symbol) : Inline

Creates an anchor inline node.

Source
create_block(parent : AbstractBlock, context : Symbol, source : String | Array(String) | Nil, attrs : Hash(String, String), opts : Hash(String, String | Bool | Int32 | ContentModel) = {} of String => String | Bool | Int32 | ContentModel) : Block

Creates a new Block node and links it to the specified parent.

Source
create_example_block(parent : AbstractBlock, source : String | Array(String) | Nil, attrs : Hash(String, String)) : Block

Creates an example block.

Source
create_image_block(parent : AbstractBlock, attrs : Hash(String, String), opts : Hash(String, String | Bool | Int32 | ContentModel) = {} of String => String | Bool | Int32 | ContentModel) : Block

Creates an image block node and links it to the specified parent.

Source
create_inline(parent : AbstractBlock, context : Symbol, text : String | Nil, opts : Hash(String, String | Symbol) = {} of String => String | Symbol) : Inline

Creates an inline node and binds it to the specified parent.

Source
create_inline_pass(parent : AbstractBlock, text : String | Nil, opts : Hash(String, String | Symbol) = {} of String => String | Symbol) : Inline

Creates an inline pass node.

Source
create_list(parent : AbstractBlock, context : Symbol, attrs : Hash(String, String) | Nil = nil) : List

Creates a list node and links it to the specified parent.

Source
create_list_item(parent : AbstractBlock, text : String | Nil = nil) : ListItem

Creates a list item node and links it to the specified parent.

Source
create_listing_block(parent : AbstractBlock, source : String | Array(String) | Nil, attrs : Hash(String, String)) : Block

Creates a listing block.

Source
create_literal_block(parent : AbstractBlock, source : String | Array(String) | Nil, attrs : Hash(String, String)) : Block

Creates a literal block.

Source
create_open_block(parent : AbstractBlock, source : String | Array(String) | Nil, attrs : Hash(String, String)) : Block

Creates an open block.

Source
create_paragraph(parent : AbstractBlock, source : String | Array(String), attrs : Hash(String, String)) : Block

Creates a paragraph block.

Source
create_pass_block(parent : AbstractBlock, source : String | Array(String) | Nil, attrs : Hash(String, String), opts : Hash(String, String | Bool | Int32 | ContentModel) = {} of String => String | Bool | Int32 | ContentModel) : Block

Creates a pass block.

Source
create_section(parent : AbstractBlock, title : String, attrs : Hash(String, String), opts : Hash(Symbol, Int32 | Bool) = {} of Symbol => Int32 | Bool) : Section

Creates a Section node.

Source
parse_content(parent : AbstractBlock, content : String | Array(String)) : AbstractBlock

Parses blocks in the content and attaches them to the parent.

Source
update_config(config : Hash(String, String | Bool | Int32 | Array(String) | Set(Symbol) | Symbol)) : Nil

Update the configuration of this processor.

Source