Vscode-markdown: [Feature Request] Automatic section numbering

Created on 24 May 2019  ·  12Comments  ·  Source: yzhang-gh/vscode-markdown

It would be nice to automatically insert section numbers in headers similar to https://marketplace.visualstudio.com/items?itemName=AlanWalk.markdown-toc#32-insert-header-number-sections

demo

Thanks!

table of contents Feature Fixed

Most helpful comment

I just tried it out on the dev build, it works great, thanks. Could we also add a setting to contol the range of the numbering just like the TOC?
Something like:

Numbering: Levels
Range of levels for numbering. Use `x..y` for level x to y:
2..6

to get the following:

# Title 1
## 1. Sub 1
### 1.1. Subsub 1.
etc.

All 12 comments

Thanks for the feedback. I am also interested in this feature. The only problem is I might not have enough time recently.

Interested too

Do you have some news about this feature ? It would be very helpfull to have it :)

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


__This issue now has a funding of 10.0 DAI (10.0 USD @ $1.0/DAI) attached to it as part of the @hoprnet fund.__

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


__Work has been started__.

These users each claimed they can complete the work by 1 month from now.
Please review their action plans below:

1) celebritydeveloper has started work.

I will have to go through all the errors messages to fund the fix.

Learn more on the Gitcoin Issue Details page.

We are waiting, it will be great. :)

I spent a while to get it done as this is probably the most upvoted request now (combined with #555).

Please try out the dev build and tell me whether it works for you.

(Note that we need the trailing dot . of the section number, otherwise there is no way to differentiate whether it is a section number or literally a number.)

TOC feature is working, but not found section numbering command.

Press ctrl+shift+p and search "section numbers".

Oops, a file was not uploaded 😲 Uploaded now.

Last dev build bring the command. Great job!!

I just tried it out on the dev build, it works great, thanks. Could we also add a setting to contol the range of the numbering just like the TOC?
Something like:

Numbering: Levels
Range of levels for numbering. Use `x..y` for level x to y:
2..6

to get the following:

# Title 1
## 1. Sub 1
### 1.1. Subsub 1.
etc.

Let's track the further improvements at #555.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

smallprogram picture smallprogram  ·  3Comments

deanishe picture deanishe  ·  4Comments

lotapp picture lotapp  ·  3Comments

jerry-sky picture jerry-sky  ·  4Comments

lengyingzi picture lengyingzi  ·  5Comments