Skip to content

magnetikonline/markdown-toc-generate

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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