Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[Feature]: Make Markdown preview colors configurable

Aperta
#3,433 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
css, go, markdown
Ambito
design, frontend

Direzione di ricerca

Start at the Markdown renderer used by wsh view file.md and trace how the active terminal theme foreground and --main-text-color are resolved. Check the preview styling for body text, headings, inline code, and fenced code. Done means custom presets can control those colors independently while existing presets retain sensible fallback behavior.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement triage
Feature description

Markdown preview colors are not currently configurable through a custom theme or preset. For example, with a dark custom theme, opening a Markdown file using:

wsh view file.md

renders the document body text in bright white. With some dark custom backgrounds, the contrast is excessively harsh and makes longer Markdown documents uncomfortable to read.

The colors used for headings, inline code, and fenced code text also cannot be adjusted to fit the rest of the theme.

Steps to Reproduce
Apply a dark custom preset with a muted foreground color.

Run:
wsh view file.md
Compare the Markdown preview colors with the terminal and other components using the same preset.

Desired Behavior
Custom themes or presets should be able to configure the Markdown preview’s colors.

At minimum, it would be useful to control:

Body text
Headings
Inline code
The default foreground color for fenced code blocks

Possible theme variables or settings could include:

--markdown-text-color
--markdown-heading-color
```--markdown-code-color``

The exact names and implementation are less important than the main requirement that these colors be independently configurable by custom themes. When no Markdown-specific colors are configured, the preview could derive sensible defaults from the active terminal theme’s foreground color.

Implementation Suggestion

The Markdown renderer already uses var(--main-text-color), while the active terminal theme foreground appears to be resolved separately.

A likely implementation would be to expose the resolved foreground color to the Markdown preview as a local CSS variable, then allow Markdown-specific variables to override it.

For example, the fallback order could be:

  1. Markdown-specific color
  2. Active theme foreground
  3. Existing --main-text-color

This would preserve the current behavior for existing presets while allowing custom themes to control the Markdown preview explicitly.

Anything else?

No response

Lingua principale
Go
Stelle
22.3k
Fork
1.1k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di wavetermdev/waveterm

Tutte le issue di wavetermdev/waveterm

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.