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

@ -1,12 +1,16 @@
# Markdown configuration
The Markdown parser is [marked](https://github.com/chjj/marked). You can customize how docsify renders your Markdown content to HTML.
The Markdown parser is [marked](https://github.com/chjj/marked). You can customize how docsify renders your Markdown content to HTML. Support customize `renderer`.
```js
window.$docsify = {
markdown: {
smartypants: true
// ...
smartypants: true,
renderer: {
link: function() {
// ...
}
}
}
}
```