From 9eb23603f4d30a0822afde7fbd234976557f575a Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Sun, 20 Dec 2015 11:28:54 -0600 Subject: Added support of toc syntax --- public/vendor/md-toc.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'public/vendor') diff --git a/public/vendor/md-toc.js b/public/vendor/md-toc.js index e46afad9..abdd9f56 100755 --- a/public/vendor/md-toc.js +++ b/public/vendor/md-toc.js @@ -10,6 +10,7 @@ this.options = options || {}; this.tocLevel = parseInt(options.level) || 0; this.tocClass = options['class'] || 'toc'; + this.ulClass = options['ulClass']; this.tocTop = parseInt(options.top) || 0; this.elChilds = this.el.children; if (!this.elChilds.length) return; @@ -80,7 +81,10 @@ this._tempLists.length = this._tempLists.length - y; } else { this._tempLists.push(this._elTitleElement); - this.tocContent += '