Vscode-markdown: how to stop auto-update Table of Contents

Created on 7 Mar 2019  路  2Comments  路  Source: yzhang-gh/vscode-markdown

What is the problem?

Table of contents is getting auto-generated on file save with unwanted sections on it.

How can I reproduce it?

Markdown 2.1.1
Vscode 1.31.1

open a MD with an outdated table of contents. touch the file and save, the table of contents is getting regenerated

Is there any error message in the console?


no error.

Question

Most helpful comment

See option markdown.extension.toc.updateOnSave

Tip: use <!-- omit in toc --> comment to ignore headings

All 2 comments

See option markdown.extension.toc.updateOnSave

Tip: use <!-- omit in toc --> comment to ignore headings

image

@yzhang-gh Seems not working to me.

Fine, it should be ## TOC <!-- omit in toc -->...

Was this page helpful?
0 / 5 - 0 ratings