heading-inside-listitem

A heading inside a list item is legal; produces a Section as a block child of the ListItem

§4.2

Input

- intro

  = Inner Section

  paragraph

Output AST

- type: List
  kind: bullet
  loose: true
  children:
    - type: ListItem
      children:
        - type: Paragraph
          children:
            - type: Text
              value: intro
        - type: Section
          level: 1
          heading:
            - type: Text
              value: Inner Section
          children:
            - type: Paragraph
              children:
                - type: Text
                  value: paragraph