microsoft / microsoft/vscode-markdown-languageservice

UX not supporting creation of link text in square brackets [] in markdown with spaces in pathname

Open
#205 3 comments 0 reactions 1 assignee View on GitHub

@mjbvz is already working on this.

Since Apr 9, 2025.

feature-request
Dominant language
TypeScript
Stars
438
Forks
25
Avg merge
3d 21h
Merged PRs (30d)
1

Description

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.99.1
  • OS Version: wsl2

Steps to Reproduce:

  1. create a markdown file
  2. create a folder and some file with spaces in it
cd /tmp
touch readme.md
mkdir -p 'assets/folder 1'
mkdir -p 'assets/folder 2'
touch 'assets/folder '{1,2}'/a file.txt'

ls -R assets

code readme.md

when using the std markdown feature

not really possible to hit the folder\s2 as you can see

Image

# hello
try to  do  this with less pain

[some txt link](./assets/folder%202/a%20file.txt)

not sure if I type %20 would work as workround in vbscode to continue the matching ...

this was simple example to reproduce

in my case I have loads of folders, this is more realisitically a problem to me, so I created this issue.

ex
Image

thanks

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.