Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic numbering #40

Open
mpseidel opened this issue Jan 5, 2018 · 0 comments
Open

Automatic numbering #40

mpseidel opened this issue Jan 5, 2018 · 0 comments

Comments

@mpseidel
Copy link

mpseidel commented Jan 5, 2018

Hi guys - well done plugin, works great for my use case.

Quick question:

Would love to add an option to automatically number headings like this:

My TOC

  1. Section 1
    1.1 Subsection 1 of 1
    1.2 Subsection 2 of 1
  2. Section 2

1 Section 1

Section 1 contents here

1.2 Subsection 1 of 1

Contents of subsection 1 of 1 here

...

Any hints on how you would go about implementing this? Happy to give it a shot but maybe you can point me to some potential pitfalls or shortcuts before I dive in. Maybe I could add a callback function as an option to generate the number prefix based on level and counter ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant