Skip to content

Commit

Permalink
fix: remove strikethrough from literal strings
Browse files Browse the repository at this point in the history
When Pygments renders HTML, t uses the `<s>` 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: pypi#12484

Signed-off-by: Mike Fiedler <[email protected]>
  • Loading branch information
miketheman committed Nov 11, 2022
1 parent 1387d3a commit 59bffec
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions warehouse/static/sass/blocks/_project-description.scss
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,11 @@
margin-right: auto;
}

s { /* pygments Literal.String */
/* Override browser default behavior */
text-decoration: none;
}

}


Expand Down

0 comments on commit 59bffec

Please sign in to comment.