Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typst Math Not Colored #1742

Open
DuroCodes opened this issue Jan 29, 2025 · 0 comments
Open

Typst Math Not Colored #1742

DuroCodes opened this issue Jan 29, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@DuroCodes
Copy link

Describe the bug
When rendering typst math blocks, they render with black text rather than the usual white/var(--dark) text.

To Reproduce
Steps to reproduce the behavior:

  1. Set math renderer to 'typst'
  2. Have some typst expression in your markdown file
  3. See that the typst math block has black text, rather than the usual text color.

Expected behavior
It should be the same color as the usual text, or the same as the LaTeX rendering

Screenshots and Source
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • Quartz Version: 4.4.0
  • node Version: v20.13.1
  • npm version: 10.9.0
  • OS: macOS
  • Browser: Arc/Chromium

Additional context
You can temporarily solve this by adding:

.typst-text {
  fill: var(--dark);
}

To your custom.scss. The fix for this issue would probably be just to add this to the default stylesheet as well.

@DuroCodes DuroCodes added the bug Something isn't working label Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant