diff --git a/content/posts/python-3140-alpha-4-is-out/index.md b/content/posts/python-3140-alpha-4-is-out/index.md index 896bfe4..6f807e3 100644 --- a/content/posts/python-3140-alpha-4-is-out/index.md +++ b/content/posts/python-3140-alpha-4-is-out/index.md @@ -48,7 +48,7 @@ The next pre-release of Python 3.14 will be 3.14.0a5, currently scheduled for 20 In Python, you can use Greek letters as constants. For example: -``` +```python from math import pi as π def circumference(radius: float) -> float: diff --git a/src/assets/styles/global.css b/src/assets/styles/global.css index 187d440..5f30e11 100644 --- a/src/assets/styles/global.css +++ b/src/assets/styles/global.css @@ -369,6 +369,14 @@ body { word-break: normal; } +/* Higher specificity than `.dark .prose code`, which would otherwise + paint per-line inline-code backgrounds inside code blocks in dark mode. */ +.dark .prose pre code { + background: none; + border: none; + color: inherit; +} + /* ── Images ──────────────────────────────────────── */ .prose img {