Skip to content
This repository has been archived by the owner on May 27, 2021. It is now read-only.

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

Open
Triple-Z opened this issue Jan 13, 2019 · 5 comments · May be fixed by #92
Open

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

Triple-Z opened this issue Jan 13, 2019 · 5 comments · May be fixed by #92

Comments

@Triple-Z
Copy link

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).

@akshaybabloo
Copy link

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

@seflue
Copy link

seflue commented Jul 31, 2019

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

@seflue
Copy link

seflue commented Jul 31, 2019

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.

@martypowell
Copy link

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

+1

@mcornella
Copy link

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

@mcornella mcornella linked a pull request Sep 23, 2020 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants