Client side Markdown table of contents (TOC) generator.
- Paste source Markdown document into first textarea.
- Select options.
- Hit Generate.
- Final table of contents dropped into second textarea.
- Hit Copy to clipboard and you're done.
Tests for stripPunctuation()
, a JavaScript implementation of CommonMark's int cmark_utf8proc_is_punctuation(int32_t uc)
function under test/
.
Implementation of stripPunctuation()
ensures generated links to headings are valid when dealing with characters/languages using extended UTF-8 character sets.
Available here: https://magnetikonline.github.io/markdown-toc-generate/.
Built and tested against Google Chrome (version 75).