Markdown如何表示目录结构?
我需要在博客文章中表示文件目录的结构,Markdown是否有语法支持整洁的输出方式?
例如,在Jekyll网站上可以看到at this link,目录&文件结构在页面上非常整齐地输出:
.
├── _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
上面的行块字符应该是Unicode的(如this answer here所述),但不确定Markdown或不同的浏览器会如何处理这些字符(从而保证整洁)。Markdown支持这样的方式,表示文件目录结构,并输出为Unicode字符?
最佳解决办法
如果比较care是否为Unicode字符,可以使用ASCII构建结构,因此示例结构将变