heading-trailing-spaces-dropped

Trailing spaces on a heading line are dropped: the end of a single-line block's inline context is a block boundary, not a soft break

§12.1 · source

Input

= Title  

Body

Output AST

- type: Section
  level: 1
  heading:
    - type: Text
      value: Title
  children:
    - type: Paragraph
      children:
        - type: Text
          value: Body