quarto-dev / quarto-dev/quarto

Wrong display math syntax highlighting and preview

Open
#703 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
645
Forks
62
Avg merge
17h 42m
Merged PRs (30d)
13

Description

Bug description
$$x$$

is being highlighted as:

Image

and in the preview looks like:

Image

This is just an example. Any display math block will fail in similar ways.

Steps to reproduce

Create a qmd file with the content above. Open the math preview.

Actual behavior

As shown above.

Expected behavior

The block is correctly recognized and presented as display math.

Your environment
  • IDE: VSCode 1.99.3
  • macOS Sequoia 15.1
  • Quarto Extension 1.121.0

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

Create a qmd file containing $$x$$ in VSCode 1.99.3 and open the math preview, using the reported screenshots as the current behavior. Trace the Quarto extension's syntax highlighting and preview paths; done means display math blocks are correctly recognized, highlighted, and rendered in the preview.

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
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.