[Feature]: Make Markdown preview colors configurable
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 55/100
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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:
- Markdown-specific color
- Active theme foreground
- 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
- 主要言語
- Go
- スター
- 22.4k
- フォーク
- 1.1k
- 平均マージ
- 12日 6時間
- マージ済み PR(30日)
- 14
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
wavetermdev/waveterm のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
wavetermdev/waveterm#3481 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
wavetermdev/waveterm#3435 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
wavetermdev/waveterm#3432 ·
メンテナーはふだん 1 日以内に返信
-
enhancement triage
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
wavetermdev/waveterm#3431 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
wavetermdev/waveterm#3428 ·
メンテナーはふだん 1 日以内に返信
wavetermdev/waveterm の issue をすべて見る
似ている issue
-
agent-butler-finding bug
難易度 1/5 1時間未満 初心者へのやさしさ 94/100
jordansmall/spindrift#4367 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
kind/engineering pulumi/pulumi-terraform Task Workflow Failure
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
pulumi/pulumi-terraform#1215 ·
メンテナーはふだん 1 日以内に返信
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
githubnext/gh-aw-workshop#4132 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
JuliusBrussee/caveman#1177 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信