Skip to content

section

Overview

Use md.section(name) to anchor parsing to a specific heading and then compose block-level extractors (fields, paragraphs, lists, tables, code, links, and advanced blocks). This is the primary mechanism for turning long markdown documents into predictable typed sections. It does not parse unrelated sections automatically; each required section must be declared explicitly in your schema.

For full blockOrder behavior in real flows, see blockOrder options.

Method Index

Type-specific methods

Shared auxiliaries