From 59bffec26e1da44e6602890b188119d15c3bbd8c Mon Sep 17 00:00:00 2001 From: Mike Fiedler Date: Thu, 10 Nov 2022 22:30:09 -0500 Subject: [PATCH] fix: remove strikethrough from literal strings When Pygments renders HTML, t uses the `` tag for string literals, which most browsers will interpret as a Strikethrough, which is confusing. Introduced during a fix for pypa/readme_renderer#262 and surfaced in project pages since. Fixes: #12484 Signed-off-by: Mike Fiedler --- warehouse/static/sass/blocks/_project-description.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/warehouse/static/sass/blocks/_project-description.scss b/warehouse/static/sass/blocks/_project-description.scss index ab2bfa0070e4..12d96cd153a3 100644 --- a/warehouse/static/sass/blocks/_project-description.scss +++ b/warehouse/static/sass/blocks/_project-description.scss @@ -258,6 +258,11 @@ margin-right: auto; } + s { /* pygments Literal.String */ + /* Override browser default behavior */ + text-decoration: none; + } + }