Skip to content

Remove hardcoded dark background from inline markdown code#134

Open
danielfleischer wants to merge 1 commit into
Textualize:mainfrom
danielfleischer:light
Open

Remove hardcoded dark background from inline markdown code#134
danielfleischer wants to merge 1 commit into
Textualize:mainfrom
danielfleischer:light

Conversation

@danielfleischer

@danielfleischer danielfleischer commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Rich's default markdown.code style is 'bold cyan on black', which is unreadable on light terminals. Override the console theme to drop the black background so inline and block code adapt to the terminal.

Inline code can not be changed by --theme.

Looks like this before the change:

uv run -w rich python -m rich.default_styles

image

Rich's default markdown.code style is 'bold cyan on black', which is
unreadable on light terminals. Override the console theme to drop the
black background so inline and block code adapt to the terminal.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant