task-item-mixed-list

TaskItem and ListItem children cannot mix; encountering a plain item after task items closes the checklist and opens a new bullet List

§4.7 · source

Input

- [ ] Buy milk
- [x] Write spec
- plain item

Output AST

- type: List
  kind: checklist
  start: null
  loose: false
  children:
    - type: TaskItem
      checked: false
      children:
        - type: Text
          value: Buy milk
    - type: TaskItem
      checked: true
      children:
        - type: Text
          value: Write spec
- type: List
  kind: bullet
  loose: false
  children:
    - type: ListItem
      children:
        - type: Text
          value: plain item