12
167
Fork
You've already forked fnott
32

parse html in fnott #88

Open
opened 2022年10月28日 21:08:42 +02:00 by JustineSmithies · 1 comment

Would love to be able to use html in fnott like you can in dunst.

notify-send -i "calendar" " 📅 Calendar" "$(cal --color=always | sed "s/..7m/<b><span color=\"blue\">/;s/..27m/<\/span><\/b>/")" -r 124
Would love to be able to use html in fnott like you can in dunst. ``` notify-send -i "calendar" " 📅 Calendar" "$(cal --color=always | sed "s/..7m/<b><span color=\"blue\">/;s/..27m/<\/span><\/b>/")" -r 124 ```
Owner
Copy link

As described in the specification, only a few tags are supported.

I haven't looked at dunst, but I suspect they use pango, and thus support the markup supported by pango.

Fnott does not use pango, and adding an HTML parser is out of scope, I'm afraid.

That said, fnott currently does not support the <a> and <img> tags, which the specification does require you to. Adding them would be a valid feature request.

As described in the [specification](https://specifications.freedesktop.org/notification-spec/notification-spec-latest.html#markup), only a few tags are supported. I haven't looked at dunst, but I suspect they use pango, and thus support the markup supported by pango. Fnott does not use pango, and adding an HTML parser is out of scope, I'm afraid. That said, fnott currently does _not_ support the `<a>` and `<img>` tags, which the specification _does_ require you to. Adding them would be a valid feature request.
Sign in to join this conversation.
No Branch/Tag specified
master
releases/1.8
releases/1.7
releases/1.6
releases/1.5
release/1.4
parse-font-apply-fontconfig-rules
releases/1.3
releases/1.2
releases/1.1
releases/1.0
1.8.0
1.7.1
1.7.0
1.6.0
1.5.0
1.4.1
1.4.0
1.3.0
1.2.1
1.2.0
1.1.2
1.1.1
1.1.0
1.0.1
1.0.0
0.0.0
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
dnkl/fnott#88
Reference in a new issue
dnkl/fnott
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?