Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.4k views
in Technique[技术] by (71.8m points)

mac tree生成目录在github上显示异常

mac上使用tree命令生成树状目录,在马克飞象上看正常,但是上传到github上不换行,显示异常了,如下图
clipboard.png
..]
如果在每个文件中间加空行,空行也能显示。请问有啥方法可以让它显示正常不? thank you


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

直接使用 markdown 嵌入代码的语法即可。

语法规则:

```
tree 生成的目录
```

示例:

├── gitbook
    │?? ├── fonts
    │?? │?? └── fontawesome
    │?? │??     ├── FontAwesome.otf
    │?? │??     ├── fontawesome-webfont.eot
    │?? │??     ├── fontawesome-webfont.svg
    │?? │??     ├── fontawesome-webfont.ttf
    │?? │??     ├── fontawesome-webfont.woff
    │?? │??     └── fontawesome-webfont.woff2
    │?? ├── gitbook-plugin-fontsettings
    │?? │?? ├── fontsettings.js
    │?? │?? └── website.css
    │?? ├── gitbook-plugin-highlight
    │?? │?? ├── ebook.css
    │?? │?? └── website.css
    │?? ├── gitbook-plugin-livereload
    │?? │?? └── plugin.js
    │?? ├── gitbook-plugin-lunr
    │?? │?? ├── lunr.min.js
    │?? │?? └── search-lunr.js
    │?? ├── gitbook-plugin-search
    │?? │?? ├── lunr.min.js
    │?? │?? ├── search-engine.js
    │?? │?? ├── search.css
    │?? │?? └── search.js
    │?? ├── gitbook-plugin-sharing
    │?? │?? └── buttons.js
    │?? ├── gitbook.js
    │?? ├── images
    │?? │?? ├── apple-touch-icon-precomposed-152.png
    │?? │?? └── favicon.ico
    │?? ├── style.css
    │?? └── theme.js
    ├── index.html
    └── search_index.json

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...