grunt-md2html icon indicating copy to clipboard operation
grunt-md2html copied to clipboard

Table of Contents when conversion??

Open adamrossmusic opened this issue 9 years ago • 1 comments

Hi guys!

Recently i am using your great grunt plugin for markdown conversion for a documentation app. I found out it is not possible to generate the table of contents with your md2html plugin, which would be extremely useful, with other plugins it is quite messy and not so easy to implement.

Any chances for TOC generation in the future?

Greetz,

Adam

adamrossmusic avatar Feb 15 '16 10:02 adamrossmusic

Dear Adam,

Generating a TOC is a not a straight-forward thing to do: Of course we could take every heading found in the MD files, but is this really what the user wanted?

So we must find a way to configure things like TOC depth, html generation (e.g. how do we output the TOC, is it an UL list, or something else?), template placement.

So to come back to your question: Yes, this would be a nice feature, but not trivial to implement. I will put it on the feature list for the future.

bylexus avatar Feb 16 '16 14:02 bylexus