Skip to content

magnetikonline/markdown-toc-generate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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