Esc

COMARK2001 · warning

comark/file-tree/list-instead-of-fence

Write a ::file-tree in a fenced block, not a list

::file-tree reads its tree from a fenced block. A Markdown list inside it renders as a list, and a list loses names: __init__.py turns bold and [id].vue becomes a span.

Incorrect

::file-tree
- ponds/
  - north.md
  - south.md
::
md
lint-comark example.mdexample.md:1:1 comark/file-tree/list-instead-of-fence::file-tree 1 holds a Markdown list, which turns names like __init__.py bold and drops [id].vue.Write the tree in a fenced block.✖ 1 problem

Correct

::file-tree
```
ponds/
  north.md
  south.md
```
::
md
lint-comark example.md✔ No problems