code: function addNestedLevelProps(childNode, level) {
    let currentLevel = level;
  
    if (childNode.tagName) {
      childNode.level = currentLevel;
    }
  
    return currentLevel;
  }
docs: list-specific helper function to set nested children's `level` prop automatically