-
Notifications
You must be signed in to change notification settings - Fork 332
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
[Feature Request] Outline Numbering for headings #555
Comments
This is a same feature as #457. I am going to leave this open as you provide some concrete examples. |
Sorry, I did a quick search for duplicates and didn't see any. I'm hoping to find some time to try and help with this in the next few weeks, but don't have any vscode extension experience. |
This feature could be like Markdown TOC extension does. |
Please see #457 (comment). |
This is indeed a very nice feature. However, it will number from 1.x and never reach 2.x, if one wants to follow markdown "rules" to only have a single top-level header. Perhaps, if the top-level header is omitted from toc, then the second level headers could be 1.x, 2.x, etc. |
@dlidstrom Thanks for the feedback. We have many ways to exclude a heading from the TOC (options |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Please try out the dev build. |
TOC is not updated while the headings are changed. |
Interesting workaround. However, decoupling the two functionality would be more preferable. |
This is by design. They are independent commands. You can undo a single change if any one of them doesn't work as expected.
Please provide concrete examples as in this original post. Otherwise it is not very convincing 🤔. |
For example, if I want a TOC with the first level title while hoping to have numbering headings from the second level and on. |
@guoquan Thanks. Although I am not very convinced by this example (as a user may want any strange TOC #403), let's see whether other users have a similar request. A common template of using Markdown to write a blog is # Title <!-- omit in toc -->
#### Table of Contents <!-- omit in toc -->
- 1. Real Section 1
- 1.1. Section 1.1
...
## 1. Real Section 1
### 1.1. Section 1.1
... The current implementation is optimized for this case. |
Is it possible to deactivate the last point in the numbers? So that the numbering is just like described in the first post. |
Hi there, is it possible somehow to define or set a specific start numbering for auto-generated section numbers? For example, something like My use case is that I have several |
@gerardbosch Thanks for the detailed description. I have created a new issue for that. |
This isn't an issue, but a feature request. The extension is fantastic, but the only thing missing for me is automatic numbering of headings, that can be updated on Save.
Use Case 1 - new doc with no numbers
the following document:
will have numbers prefixed on save or activation
Use Case 2 - update document with existing numbers
the following document will become:
will have new numbers added and old numbers changed on save or activation
The numbers here should match those in the TOC
By @yzhang-gh:
TODO
The text was updated successfully, but these errors were encountered: