markdown-toc-generate
markdown-toc-generate copied to clipboard
Table of contents (TOC) generator for a given Markdown page source.
Markdown TOC generate
Client side Markdown table of contents (TOC) generator.
Usage
- 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
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.
Online
Available here: https://magnetikonline.github.io/markdown-toc-generate/.
Built and tested against Google Chrome (version 75).
Reference
- https://github.com/github/cmark-gfm
int cmark_utf8proc_is_punctuation(int32_t uc)