Representing Directory & File Structure in Markdown Syntax
I followed an example in another repository and wrapped the directory structure within a pair of triple backticks (```
):
```
project
â README.md
â file001.txt
â
ââââfolder1
â â file011.txt
â â file012.txt
â â
â ââââsubfolder1
â â file111.txt
â â file112.txt
â â ...
â
ââââfolder2
â file021.txt
â file022.txt
```
If you're using VS Code, this is an awesome extension for generating file trees.
Added directly to markdown...
ð¦quakehunter
⣠ðclient
⣠ðnode_modules
⣠ðserver
â â ðindex.js
⣠ð.gitignore
⣠ðpackage-lock.json
â ðpackage.json
If you are concerned about Unicode characters you can use ASCII to build the structures, so your example structure becomes
.
+-- _config.yml
+-- _drafts
| +-- begin-with-the-crazy-ideas.textile
| +-- on-simplicity-in-technology.markdown
+-- _includes
| +-- footer.html
| +-- header.html
+-- _layouts
| +-- default.html
| +-- post.html
+-- _posts
| +-- 2007-10-29-why-every-programmer-should-play-nethack.textile
| +-- 2009-04-26-barcamp-boston-4-roundup.textile
+-- _data
| +-- members.yml
+-- _site
+-- index.html
Which is similar to the format tree
uses if you select ANSI
output.