amyreese / markdown-pp

Preprocessor for Markdown files to generate a table of contents and other documentation needs
MIT License
309 stars 68 forks source link

Feature - toc styling #71

Open romanlum opened 4 years ago

romanlum commented 4 years ago

Currently it is not possible to style the toc, because it is generated as normal markdown links.

To be able to style the toc i have changed the toc module to generate a div around the toc entries. This div contains the class toc and toc-depth.

<div class="toc toc-1">

1\.  [Test](#test)
</div>
<div class="toc toc-2">

1.1\.  [Title](#title)
</div>