Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[Feature]: Make Markdown preview colors configurable

オープン
#3,433 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
css, go, markdown
領域
design, frontend

調査の方向性

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 の本文から書いたものです。

説明

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

主要言語
Go
スター
22.4k
フォーク
1.1k
平均マージ
12日 6時間
マージ済み PR(30日)
14

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

wavetermdev/waveterm のほかの issue

wavetermdev/waveterm の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。