Skip to content

[BUG] Notification body renders raw HTML in compact/preview mode due to incorrect text format handling #1652

Description

@CodeMaster2004

Step 1. Before you submit

  • I have read the above instructions and am sure that this is supposed to be posted here.
  • I've successfully updated to the latest versions following the updating guide.
  • I've successfully updated the system packages to the latest.
  • I've ticked the checkboxes without reading their contents

Step 2. Version info

caelestia -v
Packages:
caelestia-shell 2.1.0-1
caelestia-cli 1.1.0-1
caelestia-meta r183.cf94e7f-1

Caelestia:
Last commit: 2e5598c627734cc87089d5ea570e80db558a04f7
Commit message: fix: match more xwayland popups Also make xwayland popups disable blur & opaque

Shell:
caelestia-shell 2.1.0, revision 90a1b46, distributed by: AUR (package: caelestia-shell)

Quickshell:
Quickshell 0.3.0 (revision b66495fcc5022681b56b61f928c7acbe910e722c, distributed by AUR (package: quickshell-git))

Local copy of shell found:
Unable to determine last merged upstream commit.

Last commit: 801a6b5b1ebe62e9148d346f05c8352f23d90979
Commit message: fix: don't animate calendar today indicator  Since the calendar itself animates now, no need to animate indicator 

Step 3. Describe the issue

Problem

Notification previews (compact view) display raw HTML tags instead of rendering them properly, while the expanded view renders the same content correctly.

Example:

A notification body like:

Hello

is shown as raw text in the compact preview, but rendered correctly when expanded.


Steps to reproduce

  1. Trigger a notification with markup:
notify-send "Test" '<a href="https://example.com">Hello</a>'

<img width="1280" height="576" alt="Image" src="https://github.com/user-attachments/assets/62c9496c-fc8b-4c59-ad46-1899659e4e39" />

<img width="595" height="354" alt="Image" src="https://github.com/user-attachments/assets/b782bdd7-1766-477d-affb-c5487c7ed4f9" />

### Reminder

- [x] I agree that it's usually impossible for others to help me without my logs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions