Issues with using omittedFromToc setting on Windows #644
Labels
Area: Table of contents
Pertaining to table of contents (TOC generation and detection, related heading operations).
Issue: Bug
Res: Fixed
Fix is checked in, but it might be a few weeks until a release.
I would like to report some issues with using
omittedFromToc
setting on Windows.omittedFromToc
setting on Windows. The extension contains the code that attempts to change portion of thedoc.fileName
to an empty string for future search using relative path. It uses a string with absolute workspace path and slash character as a search pattern forreplace
. However, on Windows the doc.fileName contains backslash character, not slash, so the replace does not work. Because of this, the workspace relative paths do not work. The mentioned code is here:vscode-markdown/src/toc.ts
Lines 78 to 83 in 7d7d9d9
For now, the only way to use
omittedFromToc
setting on Windows is to use absolute paths and use non-capital character for drive letter (the first one in path), like this:The text was updated successfully, but these errors were encountered: