section-boundary

A later heading may close an earlier Section while every source prefix remains a normal document

§16

Input

= One

== Two

Output AST

- type: Section
  level: 1
  heading:
    - type: Text
      value: One
  children:
    - type: Section
      level: 2
      heading:
        - type: Text
          value: Two

Streaming

unit: unicode-scalar
checkpoints:
  - at: 5
    ast:
      - type: Section
        level: 1
        heading:
          - type: Text
            value: One
    diagnostics: []