-
Notifications
You must be signed in to change notification settings - Fork 647
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
Wikilinks activated: special characters make the links to not work #1298
Comments
When wikilink definitions are disabled the user flow works fine. The issue is with the wikilink definition generation. Specifically the above
Which is incorrect. After some testing it looks like the correct definition should look like this:
Needs some investigation in terms of which characters need to be escaped |
Thanks for the investigation @riccardoferretti ! |
I just fixed the layout of the issue (the wikilink line was messing the rest of the text. |
Just wanted to also point out that the workaround, unless you need wikilink definitions (if you are not sure, you probably don't), you can just disable them and the link will work. |
Indeed, I disabled wikilinks, and it works like a charm. I don't really need it outside of vscode so all good from my side 👍 |
I'm still reproducing this issue with the characters Example: The links in the markdown preview are redirecting to |
Describe the bug
Creating a link with special characters when the wikilinks are activated, makes the link to stop working at saving the file (which is the time where the wikilinks are created).
Small Reproducible Example
No response
Steps to Reproduce the Bug or Issue
Example 1:
I create a link: [[Select a choice: Multiple ones]]
I press my keys to enter/create the note.
I can see the Select a choice: Multiple ones.md file is created.
I save the file containing the link.
It does some magic, so it adds this at the end of the file:
[Select a choice: Multiple ones]: <Select a choice: Multiple ones> "Select a choice: Multiple ones"
.Now, the link has the "this link is not linked to any note" color.
If I click on the link now, it creates a file called Multiple ones.md
Example 2:
Note: it could be related to
:
in the title changed to_
in the file name. Example:P2 - Alignment_ Excerpts in emails having links.md
instead ofP2 - Alignment: Excerpts in emails having links.md
Expected behavior
The link should take you to the right note.
The note filename should be the same as the link (for example, if the link has
:
don't replace it with_
).If the wikilink is defined in the file, clicking the link should still take you to the note, not to the definition at the bottom of the file.
Screenshots or Videos
No response
Operating System Version
macOs: Sonoma 14.0
Visual Studio Code Version
Version: 1.83.1 (Universal)
Additional context
I write in Spanish, so my file names commonly use
ñ
and tildes (á
).The text was updated successfully, but these errors were encountered: