Table-of-comments icon indicating copy to clipboard operation
Table-of-comments copied to clipboard

feature_request(toc): Numbered TOC

Open Kristinita opened this issue 6 years ago • 0 comments

1. Summary

It would be nice, if would be possible to have numbered TOC.

2. Argumentation

In some cases numbered lists would be better, than bulleted, see “Numbered lists for online content”.

3. Example

Part of SashaTOC.styl file:

/* ==========================================================================
   > Sasha header
   ========================================================================== */

/* >> Sasha subheader
   ========================================================================== */

If, for example, option:

"numbered_toc": true

Will generate TOC:

/*
* TOC
*
* 1. Sasha header
* 1.1. Sasha subheader
*/

4. Examples in other apps

See Markdown Numbered Headers plugin, that make similar actions, that in my feature request.

Thanks.

Kristinita avatar Mar 17 '18 06:03 Kristinita