list-nested

A marker at a greater column than the current item creates a nested List inside a ListItem (2-space indent is the recommended convention)

§4.7.1 · source

Input

- Item one
  - Nested
- Item two

Output AST

- type: List
  kind: bullet
  start: null
  children:
    - type: ListItem
      children:
        - type: Text
          value: Item one
        - type: List
          kind: bullet
          start: null
          children:
            - type: ListItem
              children:
                - type: Text
                  value: Nested
    - type: ListItem
      children:
        - type: Text
          value: Item two