---
source: basalt/src/note_editor/parser.rs
expression: "format!(\"{}\\n ---\\n\\n{}\", text, ast::nodes_to_sexp(&from_str(text), 0))"
---
## Nesting task lists
Similarly, you can create a nested task list by indenting one or more list items:

- [ ] Task item 1
  - [ ] Subtask 1
- [ ] Task item 2
  - [ ] Subtask 2

 ---

(heading H2 @0..22
  "Nesting task lists")
(paragraph @22..104
  "Similarly, you can create a nested task list by indenting one or more list items:")
(list @105..177
  (task Unchecked @105..141
    (paragraph @105..141
      "Task item 1")
    (list @125..141
      (task Unchecked @125..141
        (paragraph @125..141
          "Subtask 1"))))
  (task Unchecked @141..177
    (paragraph @141..177
      "Task item 2")
    (list @161..177
      (task Unchecked @161..177
        (paragraph @161..177
          "Subtask 2")))))
