-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Bug description
Summary
Math formulas (KaTeX/LaTeX) in Quarto .qmd preview are rendered in black text regardless of the editor theme. On dark themes that makes inline and display math unreadable.
Reproduction steps
- Open VS Code and activate a dark theme (e.g., "Dark+ (default dark)").
- Create a Quarto markdown file (formula.qmd) with a math block, for example:
---
title: "Untitled"
format: html
---
# Example formula
This is a formula:
$$
E = mc^2
$$
- Open the Quarto/preview pane (Preview in extension) for the file.
- Observe the rendered formula text (inline or display math) is black on the dark background.
Actual behavior
Rendered math text is pure black (or a fixed dark color), making it illegible on dark backgrounds.
From the code:
From the sidebar:
Expected behavior
Math should inherit the appropriate foreground color from the preview theme or use the editor/preview text color so it remains readable with dark themes. In short: math should respect the page/theme color rather than force black.
Minimal example
Use the YAML/sample above (paste into formula.qmd) — reproduces immediately in preview.
Steps to reproduce
No response
Actual behavior
No response
Expected behavior
No response
Your environment
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working