Add new markdown grammar & improve sidebar performance.

This commit is contained in:
qingwei.li 2017-01-10 23:16:55 +08:00
commit ef53a07f49
7 changed files with 95 additions and 58 deletions

View file

@ -351,11 +351,14 @@ Scroll to the top on changing hash.
```html
<script src="/lib/docsify.js" data-auto2top></script>
<!-- Set offset top -->
<script src="/lib/docsify.js" data-auto2top="50"></script>
```
```js
window.$docsify = {
auto2top: true
auto2top: true,
// auto2top: 50
}
```