From 476dfccfca338252641a8fecaf205b29fde6f09c Mon Sep 17 00:00:00 2001 From: Dave Pearson Date: Thu, 27 Apr 2023 11:57:48 +0100 Subject: [PATCH] Fix light mode plain text in non-syntax code blocks in Markdown Bit of a workaround at the moment; ideally longer-term we'll go with something less hard-coded. See #2400 --- CHANGELOG.md | 4 ++++ src/textual/widgets/_markdown.py | 1 + 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 79b319a6e0..9973bdb2b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - All `textual.containers` are now `1fr` in relevant dimensions by default https://github.com/Textualize/textual/pull/2386 +### Fixed + +- Fixed plain text in Markdown code blocks with no syntax being difficult to read https://github.com/Textualize/textual/issues/2400 + ## [0.21.0] - 2023-04-26 ### Changed diff --git a/src/textual/widgets/_markdown.py b/src/textual/widgets/_markdown.py index 19220d1c6b..654f838d9d 100644 --- a/src/textual/widgets/_markdown.py +++ b/src/textual/widgets/_markdown.py @@ -476,6 +476,7 @@ class MarkdownFence(MarkdownBlock): width: 100%; height: auto; max-height: 20; + color: rgb(210,210,210); } MarkdownFence > * {