table 内容中的 MarkdownTOC 在更新和插入时用自动替换换行符

MarkdownTOC in table of contents is substituting auto for newlines on update and insert

编辑或创建降价文件时,插入或更新内容的 table 将用单词 auto 替换 TOC 标签之间的换行符。如:

<!-- TOC fromDepth:2 ToDepth:4 insertAnchor:true -->autoauto- [1. Introduction](#1-introduction)auto- [2. Section](#2-section)auto    - [2.1. Sub Section One](#21-sub-section-one)auto    - [2.2. Sub Section Two](#22-sub-section-two)auto    - [2.3. Sub Section Three](#23-sub-section-three)autoauto<!-- /TOC -->

我正在使用 VS Code 和 MarkdownTOC。关于这可能发生的事情的任何建议。

正在讨论这个问题here

看来这个问题是由 a change in VSCode 1.29.0 引入的。

有两种解决方法可以解决此问题:

1.在 VSCode 设置中将 eol 设置回 \n

2。手动将所有出现的 auto 替换为 \n(注意不要破坏您的内容)