tantalic / servemd

A simple HTTP server for markdown content

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add ability to generate a table of contents

tantalic opened this issue · comments

Add a new flag to enable generation of a Table of Contents. This should be possible by using the blackfriday.HTML_TOC renderer configuration option.

After investigating this I am not convinced this makes sense at this time. The Table of Contents is inserted as the first item in the document, which doesn't make a lot of sense for most use cases. Now that headlines are auto linked it would be easy to add a TOC with more customization by editing the markdown file(s) themselves.