summaryrefslogtreecommitdiff
path: root/public/vendor/md-toc.js (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix ToC breaking documents with empty h* elementsSheogorath2018-11-191-4/+4
| | | | | | | | | | | | | Right now, the ToC has an undefined variable i that was an index in the original ToC code. Since the major rewrite in 4fe062085324c50f2cfa062258559cf31858ef5f it's a recursive function without this index. The variable `i` was wrongly copied into its current place from the old code. This patch replaces the variable `i` with the index of the header element. Fix the undefined variable problem. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
* 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