doc(zh-cn): update all documents
This commit is contained in:
parent
a866744c45
commit
a96c2b0103
24 changed files with 962 additions and 333 deletions
26
docs/zh-cn/markdown.md
Normal file
26
docs/zh-cn/markdown.md
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
# Markdown 配置
|
||||
|
||||
内置的 Markdown 解析插件是 [marked](https://github.com/chjj/marked),你可以修改它的配置。
|
||||
|
||||
```js
|
||||
window.$docsify = {
|
||||
markdown: {
|
||||
smartypants: true
|
||||
// ...
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
?> 完整配置参数参考 [marked 文档](https://github.com/chjj/marked#options-1)
|
||||
|
||||
当然你也可以完全定制 markdown 解析规则。
|
||||
|
||||
```js
|
||||
window.$docsify = {
|
||||
markdown: function(marked) {
|
||||
// ...
|
||||
|
||||
return marked
|
||||
}
|
||||
}
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue