Asciidoctor::Parser
Inherits Asciidoctor::Logging
Internal: Methods to parse lines of AsciiDoc into an object hierarchy representing the structure of the document. All methods are module methods and should be invoked from the Parser module.
The object hierarchy created by the Parser consists of zero or more Section and Block objects. Section objects may be nested and a Section object contains zero or more Block objects.
Constants
Setext (two-line) section title levels.
A Hash mapping horizontal alignment abbreviations to alignments
A Hash mapping style abbreviations to styles for table cells
A Hash mapping vertical alignment abbreviations to alignments
Instance methods
Remove the block indentation, replace tabs with spaces, and indent by margin.
Check whether the line given is an atx section title.
Build a block from delimited content.
Catalog callout markers found in the text.
Catalog a matched inline anchor.
Catalog any inline anchors found in the text (but don't convert).
Catalog the bibliography inline anchor found in the start of the list item.
Extract manpage-specific attributes from the document title and NAME section. In Ruby Asciidoctor, the manpage doctype extracts manvolnum, manname, mantitle, and manpurpose from the document title (e.g., "command (1)") and the NAME section.
Initialize a new Section from the reader.
Determine whether this line is the start of a known delimited block.
Check if the next line on the Reader is the document title.
Check if the next line on the Reader is a section title.
Check whether the lines given are a section title (atx or setext).
Check whether a line is a sibling list item.
Parse and return the next Block at the Reader's current location.
Return the next section from the Reader.
Public: Parses AsciiDoc source read from the Reader into the Document.
Parse a block attribute list into a Hash.
Parse the next line if it contains metadata for the following block.
Parse consecutive lines of block metadata.
Parse blocks from this reader until there are no more lines.
Parse and construct a callout list Block from the current position of the Reader.
Parse a cell spec for a table.
Parse column specs for a table.
Parse a CSV line into cells, handling quoted values with commas and escaped quotes.
Parse a description list.
Parse the document header.
Parse the header metadata (author line, revision line, attribute entries).
Parse a list (unordered, ordered, or callout).
Parse and construct the next ListItem for the specified list Block.
Parse the manpage-specific header metadata.
Parse the section title from the current position of the reader.
Parse the style attribute shorthand (style#id.role%option).
Parse a table from a reader.
Process consecutive attribute entry lines.
Process a single attribute entry line.
Process authors from an author line.
Collect the lines belonging to the current list item, navigating through all the rules that determine what comprises a list item.
Read paragraph lines until a break condition is met.
Resolve the 0-index marker for a list item.
Resolve the 0-index marker for an ordered list item. When ordinal and validate are provided, validates the marker against the expected value.
Resolve the start number for an ordered list based on its marker.
Check whether the two lines form a setext-style section title.
Store an attribute in the document.
Convert a string to a block context Symbol.
Check if a string is uniform (all the same character).