From b29cbcfadbe3e3cee3041a4e995e038a834a8035 Mon Sep 17 00:00:00 2001 From: Matt Kantor Date: Sat, 22 Feb 2025 08:06:53 -0500 Subject: [PATCH] Make links in code blocks inherit syntax highlighter colors --- packages/typescriptlang-org/src/components/layout/main.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/typescriptlang-org/src/components/layout/main.scss b/packages/typescriptlang-org/src/components/layout/main.scss index 94849528c886..f964ce1b8811 100644 --- a/packages/typescriptlang-org/src/components/layout/main.scss +++ b/packages/typescriptlang-org/src/components/layout/main.scss @@ -138,6 +138,10 @@ html.font-open-dyslexic { a { color: var(--link-color); } + pre code a { + // Don't interfere with syntax highlighting in code blocks + color: inherit; + } h1, h2,