Skip to content

Commit

Permalink
fix: remove strikethrough from literal strings (pypi#12530)
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 <miketheman@gmail.com>

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
Co-authored-by: Dustin Ingram <di@users.noreply.github.com>
  • Loading branch information
miketheman and di authored Nov 11, 2022
1 parent 1dcd472 commit 4ac9f26
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 4ac9f26

Please sign in to comment.