vscode-markdown: Lower case links in TOC don't work
What is the problem?
“Markdown: Create Table of Contents” make a tree, but all headers are in lower case. Links work at vscode, but doesnt work when I push .md file to git and try to click on the link in browser.
How can I reproduce it?
For example:
# Section One
## Subsection OneToOne
Will be:
- [Section One](#section-one)
- [Subsection OneToOne](#subsection-onetoone)
And it Will Not work in browser (chrome v.69)
To be:
- [Section One](#Section-One)
- [Subsection OneToOne](#Subsection-OneToOne)
And it Will work in browser!
I hope you understand it and will fix 😃
Is there any error message in the console?
No errors
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 18 (14 by maintainers)
Commits related to this issue
- 🐜 #312 do not downcase letters in TOC links — committed to yzhang-gh/vscode-markdown by yzhang-gh 5 years ago
Well, in my situation, using lower case, it works in github, gitlab, npm, typora and other editors.
Of course. PRs are always welcome 😉
I was thinking about what kind of settings we should introduce. I don’t want to have 4 possible combinations of these settings 😂.
Although GitHub will lowercase all the anchors, the uppercase anchors also work (i.e. case insensitive on GitHub). That means GitHub is “compatible” with the case sensitive convention. Let’s make it
markdown.extension.toc.vscodeCompatibility
and default tofalse
.