Ordered list TOC has too little indentation (leading spaces) for items whose parent's ordinal is 10 or above
See original GitHub issueWhat is the problem?
I have "markdown.extension.toc.orderedList": true
and "markdown.extension.toc.levels": "2..6"
.
The document with inserted (auto-generated) toc is as follows:
# Dummy
1. [Dummy1](#dummy1)
2. [Dummy2](#dummy2)
3. [Dummy3](#dummy3)
1. [Dummy3.1](#dummy31)
2. [Dummy3.2](#dummy32)
3. [Dummy3.3](#dummy33)
4. [Dummy4](#dummy4)
5. [Dummy5](#dummy5)
6. [Dummy6](#dummy6)
7. [Dummy7](#dummy7)
8. [Dummy8](#dummy8)
9. [Dummy9](#dummy9)
1. [Dummy9.1](#dummy91)
2. [Dummy9.2](#dummy92)
10. [Dummy10](#dummy10)
1. [Dummy10.1](#dummy101)
2. [Dummy10.2](#dummy102)
11. [Dummy11](#dummy11)
12. [Dummy12](#dummy12)
1. [Dummy12.1](#dummy121)
2. [Dummy12.2](#dummy122)
## Dummy1
## Dummy2
## Dummy3
### Dummy3.1
### Dummy3.2
### Dummy3.3
## Dummy4
## Dummy5
## Dummy6
## Dummy7
## Dummy8
## Dummy9
### Dummy9.1
### Dummy9.2
## Dummy10
### Dummy10.1
### Dummy10.2
## Dummy11
## Dummy12
### Dummy12.1
### Dummy12.2
The issue is that toc when saving and auto-updating itself aligns all the sub-items with the same spacing. Which works just fine for all sub-items with parents up to 9. However all sub-items with parent items 10 and above should have an extra space. Is there some way to configure this?
Additionally, the default initial spacing for sub-items is 3 spaces. Would be nice to be able to change this (to say, 4).
Is there any error message in the console?
No.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:9 (5 by maintainers)
Top Results From Across the Web
How can I change the spacing in a TOC with numbered ...
At the bottom of the Modify Style dialog is the "Formatting" button. For line spacing, select "Paragraph" and change the space before or...
Read more ><li>: The List Item element - HTML: HyperText Markup Language
The HTML element is used to represent an item in a list. It must be contained in a parent element: an ordered list...
Read more >LaTeX2e unofficial reference manual (January 2022)
Writing your first document, with a bit of both text and math. ... For each option option in the options-list , in order,...
Read more >Enumerated lists without explicit number, ATX headings with ...
Gruber originally described a single way to markdown numbered lists: 1.. Commonmark specifies another alternative: 1).
Read more >GNU Texinfo 7.0.1
It's better to include too much than to leave out something important. ... In order to be made into a printed manual, a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I agree.
Please try setting
markdown.extension.list.indentationSize
toinherit
. Then the tab size can be configured per document (at the right bottom corner).Indeed, it was still on
inherit
. Removing the configuration forlist.indentationSize
worked!So overall, I can confirm TOC generation (wrt. indentation) works for me now like a charm! Thanks for fixing.