summaryrefslogtreecommitdiff
path: root/public/vendor/md-toc.js (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ToC: Some HTML improvements and style fixesSheogorath2018-07-041-6/+16
| | | | | | | | The ToC generated broken HTML with unclosed `<li>` tags. This got fixed as well as some minor optimisation and adding list elements for the subentries so the elements appear in the ToC while scrolling. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
* Ignore h6 headersSheogorath2018-07-041-1/+1
| | | | | | | h6 headers are used for tags in CodiMD. So we should ignore them for the ToC generation. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
* Refactor generation of ToCSheogorath2018-07-041-45/+55
| | | | | | | | | | This replaces the existing iterative implementation of the ToC generation with an recursive one. This also solves the problem of skipped headers which causes wrong leveling of them. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
* Add title attribute in table of contentsSheogorath2018-03-261-1/+2
| | | | | | | | Right now the full title of an element is may not shown as the space of the ToC is limited. With this path it'll be shower on hover and this way provide more useful information. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
* Remove executable permission from static filesPeter Dave Hello2017-04-181-0/+0
|
* Use JavaScript Standard Style (part 2)BoHong Li2017-03-091-110/+104
| | | | Fixed all fail on frontend code.
* Fix header id and text might affects by mathjax tagsWu Cheng-Han2016-11-281-1/+2
|
* Remove uesless executable permission for static filesPeter Dave Hello2016-11-141-0/+0
|
* Added support of toc syntaxWu Cheng-Han2015-12-201-2/+9
|
* Jump to 0.3.1Wu Cheng-Han2015-07-021-0/+121