Skip to main content

Module cm_heading_parser

Module cm_heading_parser 

Source
Expand description

CommonMark heading parsers. Heading parser - converts grammar output to AST nodes

Handles conversion of both ATX headings (# Header) and Setext headings (underline style) from grammar layer to parser AST representation.

Functionsยง

parse_atx_heading
Parse an ATX heading (# Header) into an AST node.
parse_setext_heading
Parse a Setext heading (underline style) into an AST node.