docs(markdown): update markdown config

This commit is contained in:
qingwei.li 2017-02-19 00:11:16 +08:00 • committed by cinwell.li
commit a6d823b826
5 changed files with 40 additions and 9 deletions

View file

@ -111,7 +111,7 @@ Add TOC in custom sidebar.
```js
window.$docsify = {
subMaxLevel: 3
subMaxLevel: 2
}
```
@ -219,6 +219,17 @@ See [Markdown configuration](/markdown).
```js
window.$docsify = {
// object
markdown: {
smartypants: true,
renderer: {
link: function() {
// ...
}
}
},
// function
markdown: function (marked, renderer) {
// ...
return marked