mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 04:29:27 +08:00
The hard-coded dark code block background (#1f2937 / #292524) combined with `.prose` rules was producing near-black text in the light theme: `.prose pre` forced color #D6D3D1 and `.prose code:not(.md-code-block__code):not(.md-inline-code)` pulled the code element back to var(--foreground), overriding the Tailwind classes on the fallback <pre>/<code>. Add a higher-specificity rule on .md-renderer .md-code-block {,pre,code} that pins the text color to #e5e7eb regardless of theme, and tag the <code> elements in the Rich/Simple markdown fallbacks with the existing md-code-block__code class so the :not() guard kicks in and inheritance resolves to the light color.