gitbook plugin for convert indented lines to an ascii directory tree
npm install gitbook-plugin-asciitree
{% asciitree %}
app
-main.js
-helper.js
-others
--Brocfile.js
package.json
{% endasciitree %}
`
out:
`
├── app
| ├── main.js
| ├── helper.js
| └── others
| └── Brocfile.js
└── package.json
`
Add it to your book.json with a basic configuration:
`json
{
"plugins": ["asciitree"],
"pluginsConfig": {
"asciitree": {
"leadingChar": "no need, because plugin will guess leadingChar.",
"trimRight": true
}
}
}
``