markdown-toc
markdown-toc copied to clipboard
TOC eat digit
My Markdown title start with digit. The TOC eat those digit.
Plus, recently, I suddenly have a problem that, when I choose "Auto Markdown TOC: Insert/Update", it automatically insert section numbers to the TOC.
Before, I also have the problem that the leading digits are eaten. But after I save again, it was corrected. Now, the leading digit are just replaced by the section number.
Can you share a simplified version of your document?
In the meantime, please uncheck the setting Detect and Auto set section
Change the setting works. Thank you very much!
My document start with a date. For example:
2019-11-18 ...
After indexing, the first entry in TOC becomes:
-11-18 ...
If I save again, it was corrected as
2019-11-18
However, if the section number was added, it will always be:
- -11-18 ...
I will turn off that setting by default in the next beta version. Thank you for using the extension 😄
Hi, just to report that the problem still occurs to me even when the option is disabled, and even when updating the TOC after saving.
In my case I have a document where the second and third level of headers start with a date
Here is the result
# title
<!-- TOC -->
* [-02](#-02)
* [-02-24](#-02-24)
* [-02-25](#-02-25)
* [-02-26](#-02-26)
<!-- /TOC -->
## 2020-02
### 2020-02-24
lorem ispum
### 2020-02-25
lorem ispum
### 2020-02-26
lorem ispum