filetree

.filetree content:{MarkdownContent} -> Node

Creates a visual file tree from a Markdown list. Each inline item is rendered as a file, and each nested list as a directory.

Example:

.filetree
- src
- main.ts
- utils.ts
- README.md

Return

the generated FileTree node

Parameters

content

body content containing a Markdown list that defines the file tree structure