Skip to content

Conversation

daniel-eder
Copy link
Contributor

Fixes #852

@daniel-eder
Copy link
Contributor Author

Tested against #852 and https://regex101.com/
The underlying issue was that the current regex uses " " to match for spaces, which fails to match the space character (I think it is a non breaking space) produced by the quarto preview cli command output.

I replaced it with the more robust "\s+" and this now works as expected.

@juliasilge juliasilge requested a review from vezwork October 20, 2025 16:21
Copy link
Collaborator

@vezwork vezwork left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed and tested locally and it works great as a fix for #852 for me! Nice work and thank you for the PR @daniel-eder

Will add an entry to the changelog and merge to main shortly

@vezwork vezwork merged commit d8a37c6 into quarto-dev:main Oct 21, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

VSCode Plugin: preview of markdown files with space in name fails for quarto projects

2 participants