Message entities instead of markdown
Author: xamgoreCreated Sep 11, 2026Updated Sep 30, 2026
Labelsenhancement
Hi guys! Ntfy is a great tool, and I want to propose another way to format messages. Right now, each client needs a markdown parser, which is a burden. Each sender also needs to know how to escape symbols in markdown messages. A much better approach is to send "message entities". You may want to check telegram's API documentation about the idea.
The idea mostly is that there should be a list of message entities next to a message text.
{
title: "...",
message: "Here is the bold text: tadam!",
entities: [ { offset: 12, length: 4 } ]
}Here is the bold text: tadam!
Here is a list of cons:
- To render such text, client applications don’t require the markdown parser.
- It's easy to integrate existing WYSIWYG editors to client apps, once again without an intermediate markdown representation.
- Senders don't need to know how to escape things. Which simplifies both senders and client apps.
- It's easy to implement search. It is just text without markdown special syntax.
- Images could be inserted like this too (either with
len: 0, or having zero-width-space in the text &len: 1). - Easy migration. Ntfy server can have this entities <-> markdown conversion inside.
Source: binwiederhier/ntfy