Skip to main content

Module parser

Module parser 

Source
Expand description

Block-level state machine: mirrors docutils.parsers.rst.states (Body, BulletList, EnumeratedList, DefinitionList, FieldList, BlockQuote, LineBlock, TableParser, ExplicitMarkup) with a line-oriented recursive-descent machine over dedented line runs.

Entry points: parse (plain) and Parser::parse_with_base (enables .. include:: relative to a base directory).

Structs§

Parser

Functions§

norm_name
Lowercase + collapse whitespace (target/reference name matching).
parse
Parse text into a Document.