yzhang-gh / vscode-markdown

Markdown All in One
https://marketplace.visualstudio.com/items?itemName=yzhang.markdown-all-in-one
MIT License
2.93k stars 325 forks source link

Path completion can't handle `(...)` parentheses in folder name - doesn't show suggestions inside such folders #1433

Open zlamma opened 5 months ago

zlamma commented 5 months ago

What's the problem

When folder name in path includes ( and then ) (only breaks if both are present), the completion is offered on that folder, but not past that. See screenshot (there should be InnerFolder shown, but instead some dictionary autocomplete is only showed):

This affects both [](./path) syntax as well as [](<./path>).

What's the expected result

Contents are offered by the autocomplete, like for folders without the parentheses. See Screenshot:

How to reproduce

  1. Create a folder with (some text) in its name and put some content in it
  2. Try to link to it in a markdown file outside of that folder.