-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Table of Contents Links are Case Sensitive #2067
Comments
DOM IDs are generally case-sensitive, as are URLs. The HTML 4 spec states they were case-sensitive but that's no longer the case in the HTML 5 spec. In Chrome, if you go to a URL that has an anchor link, and change the case, it'll no longer work so that's the same behavior Boostnote displays. |
Yeah, well a bunch of other markdown table of contents generators (and programs that follow TOC's properly) are case insensitive. Pandoc, typora, markdown-it-toc, etc, etc, etc. I don't think it's all of them that're wrong and Boostnote is the only one that got it right. Also, the Common Mark Spec defines label (and link label) matching as case-insensitive. |
Adds table of contents for any Markdown note or Markdown snippet. Consequent generations update existing TOC. Generated TOC is case sensitive to handle BoostIO#2067 Shortcut : CommandOrControl+Alt+T Menu : Edit/Generate/Update Markdown TOC
As the program is built in Electron (and thus wrapped around Chromium), the preview is rendered based on the HTML5 spec. It's not so much that the other content generators are case insensitive so much as it is they automatically convert the link fragments to lowercase. |
We now have TOC generator to take care of this: #2281 |
I also want to add that if the heading has any part in Italics then also it does not work. |
Current behavior
Currently, when using a table of Contents (auto generated in another tool, as Boostnote doesn't have this feature yet), the links to the headings must be capitalized the same as the headings themselves are.
Expected behavior
When I click on a TOC heading, it'll jump me to the correct heading.
Steps to reproduce
Environment
The text was updated successfully, but these errors were encountered: