bump 0.3.1

This commit is contained in:
qingwei.li 2016-11-27 14:01:47 +08:00
parent 8041c82e6d
commit 029f92e341
2 changed files with 2 additions and 2 deletions

View File

@ -2164,7 +2164,7 @@ var renderer = new marked.Renderer();
* @link https://github.com/chjj/marked#overriding-renderer-methods
*/
renderer.heading = function (text, level) {
var slug = text.toLowerCase().replace(/[\s\n\t]+/g, '-');
var slug = text.replace(/<(?:.|\n)*?>/gm, '').toLowerCase().replace(/[\s\n\t]+/g, '-');
toc.push({ level: level, slug: slug, title: text });

2
lib/docsify.min.js vendored

File diff suppressed because one or more lines are too long