markdown-toc icon indicating copy to clipboard operation
markdown-toc copied to clipboard

The "depthFrom" property won't work if update on save is true

Open Triple-Z opened this issue 7 years ago • 5 comments

I have written the settings for the markdown file that the table of content code is the following.

<!-- TOC depthFrom:2 -->

- [LeetCode](#leetcode)
  - [Problems](#problems)
    - [Algorithms](#algorithms)
  - [License](#license)

<!-- /TOC -->

However, the depthFrom property doesn't work with "Update on save". I have updated it manually and it can generate the right table of content, but after I pressed the Ctrl + s keys, the table of content would be automatically updated to the former version(with heading 1).

Triple-Z avatar Jan 13 '19 15:01 Triple-Z

I have the same problem. Have you tried debugging it by any chance?

akshaybabloo avatar Jul 18 '19 06:07 akshaybabloo

I can confirm this problem, also for depthTo - updateOnSave seems to ignore file specific settings.

seflue avatar Jul 31 '19 19:07 seflue

I've played around with the plugin settings and updateOnSave seems to ignore the settings at all - wether they're defined in the settings.json or in the md file which is saved.

seflue avatar Jul 31 '19 19:07 seflue

I have the same problem. Have you tried debugging it by any chance?

+1

martypowell avatar Mar 09 '20 12:03 martypowell

Can't reproduce after #92 is applied so I'm assuming it's fixed, can you try it?

mcornella avatar Sep 23 '20 14:09 mcornella