quarto-dev / quarto-dev/quarto

Bug: Math syntax highlighting fails when there is space before leading $

Open
#575 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug vscode
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:
Image

However, it renders just fine:
Image

And the syntax highlighting in RStudio also picks it up just fine:
Image

Contributor guide

No contributing guide indexed for this repository

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.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.