docs(markdown): update markdown config
This commit is contained in:
parent
7b6a2ac404
commit
a6d823b826
5 changed files with 40 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue