quarto-dev / quarto-dev/quarto
Bug: Math syntax highlighting fails when there is space before leading $
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 645
- Forks
- 62
- Avg merge
- 17h 42m
- Merged PRs (30d)
- 13
Description
I've found a bug in the syntax highlighting for math ($) syntax for the VS Code extension; I think it's when the leading $ directly follows another character, e.g. H$\rho$, then it fails to detect that a math syntax has been started.
Here's what it looks like in VS Code:
However, it renders just fine:
And the syntax highlighting in RStudio also picks it up just fine:
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the VS Code extension's math syntax highlighting and reproduce the reported example, H$\rho$, alongside the working rendering and RStudio comparisons shown in the issue. The work is complete when math syntax is highlighted correctly when the leading $ follows another character, while preserving the existing behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100