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
- section
- fields
- sequence
- paragraph
- paragraphs
- list
- tables
- blockquotes
- code
- links
- images
- footnotes -> strict references
- footnotes -> loose references
- taskList
- orderedLists
- nestedLists -> flat output
- nestedLists -> tree output
- referenceLinks
- autolinks
- htmlBlocks
- htmlInlines -> raw tags
- htmlInlines -> elements
- blockOrder
- each
- subsections