HackMD/public
Sheogorath 9951b7df7c
Fix ToC breaking documents with empty h* elements
Right now, the ToC has an undefined variable i that was an index in the
original ToC code. Since the major rewrite in
4fe0620853 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>
2018-11-19 18:27:06 +01:00
..
css Remove dead package octicon 2018-10-10 23:42:41 +02:00
docs Merge pull request #997 from SISheogorath/docs/slidePrint 2018-10-22 23:03:11 +02:00
fonts Remove uesless executable permission for static files 2016-11-14 21:13:02 +08:00
js Again: Replace emoji-plugin regex 2018-10-31 15:33:45 +01:00
uploads upload image to public/uploads 2016-11-14 16:45:57 +08:00
vendor Fix ToC breaking documents with empty h* elements 2018-11-19 18:27:06 +01:00
views Fix menu for github and dropbox 2018-11-07 12:30:17 +00:00
apple-touch-icon.png optimize png images using zopflipng 2016-10-10 00:53:54 +08:00
codimd-icon-1024.png Rebrand HackMD to CodiMD 2018-06-24 13:24:12 +02:00
default.md Removed unused note and set empty on default note, updated features note 2016-01-17 09:57:25 -06:00
favicon.png optimize png images using zopflipng 2016-10-10 00:53:54 +08:00
screenshot.png Add screenshot on index page 2017-01-21 12:52:26 +08:00