-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Copy link
Labels
Bug (unconfirmed)issues that could not be reproduced yetissues that could not be reproduced yetGood first issue 1️⃣Beginner friendly - New contributors are welcomeBeginner friendly - New contributors are welcomeTheme 🖌help wanted
Milestone
Description
Describe the bug
Multiline code blocks (<pre> containing <code>) styled with ugly per-line background in the Origine theme.
For example, the following HTML
<pre><code>$ echo "{" | base64
ewo=
$ echo "{\"" | base64
eyIK
$ echo "{\"s" | base64
eyJzCg==
$ echo "{\"a" | base64
eyJhCg==
$ echo "{\"word\"" | base64
eyJ3b3JkIgo=
</code></pre>is rendered as
To Reproduce
- Load a feed containing a multi-line block of code, such as this one: https://planet.gnome.org//rss20.xml
- Find an article with a block of code within that feed, such as TIL that You can spot base64 encoded JSON, certificates, and private keys
- Observe each line of code in the code block has a background, rather than displaying consistently.
Expected behavior
<code> inside a <pre> should not be styled specially (if we don't have highlighting support). This can likely be achieved with a CSS :has selector or a separate blank style for pre>code.
FreshRSS version
1.26.3
System information
- Database version: SQLite
- Installation type: podman (docker.io/freshrss/freshrss:latest)
- Web server type: nginx
- OS: Fedora 42
- Browser: Firefox 141
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Bug (unconfirmed)issues that could not be reproduced yetissues that could not be reproduced yetGood first issue 1️⃣Beginner friendly - New contributors are welcomeBeginner friendly - New contributors are welcomeTheme 🖌help wanted