From 4ac9f26e05f7a88585cfc230e3dd723e8787d8dd Mon Sep 17 00:00:00 2001 From: Mike Fiedler Date: Fri, 11 Nov 2022 10:16:06 -0500 Subject: [PATCH] fix: remove strikethrough from literal strings (#12530) 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 Signed-off-by: Mike Fiedler Co-authored-by: Dustin Ingram --- 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; + } + }