mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[GH-ISSUE #310] Feature Request: Message formatting (Markdown, or otherwise) #241
Labels
No labels
ai-generated
android-app
android-app
android-app
🪲 bug
build
build
dependencies
docs
enhancement
enhancement
🔥 HOT
in-progress 🏃
ios
prio:low
prio:low
pull-request
question
🔒 security
server
server
unified-push
web-app
website
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ntfy#241
Loading…
Add table
Add a link
Reference in a new issue
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?
Originally created by @NiNiyas on GitHub (Jun 4, 2022).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/310
Originally assigned to: @binwiederhier on GitHub.
The ability to format messages. Like bold, italics and so on. Here for example is the discord formatting guide.
@binwiederhier commented on GitHub (Jun 4, 2022):
Bravo for being the first 🥇 to actually open a ticket for this. About 50 people have asked, but nobody created a ticket. ;-)
@MichelMichels commented on GitHub (Mar 27, 2023):
Does this mean ntfy does not atm support any formatting in the body?
@binwiederhier commented on GitHub (Mar 27, 2023):
Correct
@MichelMichels commented on GitHub (Mar 27, 2023):
What would be the realistic steps to implement such an idea? I don't have any experience with Go, but am proficient in C#. I could try to set something up to help with the development of this feature.
@binwiederhier commented on GitHub (Mar 27, 2023):
This would be 90% Android, 10% server; probably just pulling in a markdown library in Android, and then somehow carrying the "content-type" through the message to the client; could potentially even use the "encoding" field for that.
@binwiederhier commented on GitHub (May 23, 2023):
I'm working on this now. I will be using the markwon library even though it has not been updated in 2 years 😬
Design proposal
Right now, I'm thinking:
content_typefield to the message, which istext/plainby default, and can now also betext/markdown.Content-Type: text/markdownheader, or viaX-Markdown: yesorMarkdown: yesormd: yes[ ] Allow embedding markdown images[x] Do not allow embedding markdown imagesThoughts? @wunter8 maybe. 😬
@wunter8 commented on GitHub (May 23, 2023):
Looks good to me!
I am surprised this is being added to Android before the web app, but it'll be very nice to have!
@wunter8 commented on GitHub (May 23, 2023):
Will you be able to disable parsing markdown entirely? Or just disable automatic download of images in markdown? Will this be per subscription?
@binwiederhier commented on GitHub (May 23, 2023):
Might as well also allow disabling it entirely. And yes, probably global and per-subscription, just like the other options.
@binwiederhier commented on GitHub (Jul 5, 2023):
@nimbleghost I know you're looking for your next challenge: Wanna do this one, the web app side? 😬 I have started the Android side a while back, before you came along and side-tracked me hard hehe.
There is a
markdownbranch (with minimal changes so far), but no changes in the web app, or any persistence in the message cache.@binwiederhier commented on GitHub (Jul 9, 2023):
Thanks to @nihalgonsalves's work the server and web app side of Markdown support is now merged to main. The ticket will remain open for the Android portion of it.
@Kariton commented on GitHub (Jul 21, 2023):
Hey,
love the project and its progress!
But for me the markdown does not work on any instance (public / selfhosted).
Should it already be available?
In case it matters: I use Brave, a chromium based browser.
Version 1.56.11 Chromium: 115.0.5790.102 (Official Build) (64-bit)
@binwiederhier commented on GitHub (Jul 22, 2023):
It's not released yet.
@Kariton commented on GitHub (Jul 22, 2023):
Thank you for confirming.
I was not sure because its documented but the issue is still open.
Love what you have created!
Its impressive.
@Kariton commented on GitHub (Aug 18, 2023):
Markdown is now obviously live!
Looks and works great! 😍
(and also does the embedded picture!)
LOVE IT!
EDIT: at least on the web interface. 😃
@fuse314 commented on GitHub (Jan 17, 2024):
Are there any plans to implement this in the Android app as well?
I spent 2 hours figuring out why markdown formatting did not work for me, until I found this issue :(
@wunter8 commented on GitHub (Jan 17, 2024):
Plans? Yes. I believe there is a work-on-progress branch that was started even. Timeline for estimated completion? Not yet
@tolap22 commented on GitHub (Jun 4, 2024):
seems the Android app does not yet support Markdown...
@mpeter50 commented on GitHub (Jun 15, 2024):
I have recently stumbled upon the Markdown functionality, and I already started using it for viewing in the webapp.
However I noticed that it does not support tables. The syntax doc page you refer to in your docs does not mention the common table syntax either.
Could we please also have table support?
I wanted to use it to display key-value pairs which are coming from a structured logging system of a tool I have been making.
@iwa commented on GitHub (Aug 29, 2024):
is there any plan to support markdown in the ios app by any chance?
@wunter8 commented on GitHub (Aug 29, 2024):
We'd like to add it to iOS, but I wouldn't expect it anytime soon. We don't have any iOS devs right now, so progress is extremely slow.
However, the PWA on iOS already supports Markdown, so that's probably your best option in the meantime.
@dodancs commented on GitHub (Jan 3, 2025):
Hey, is there any ETA on Markdown support in the Android app? It has been quite a few years and it still does not work. Thanks!
@wunter8 commented on GitHub (Jan 3, 2025):
You can use the PWA on Android to get markdown support now. The same as on iOS.
I think this PR works (or at least it's close): https://github.com/binwiederhier/ntfy-android/pull/77
But it hasn't been merged since Google changed Android APIs, which makes it harder to consistently get instant notifications, so we've been holding off until we have enough time to test everything for a new release. We're just busy with full-time jobs and family, so finding time is difficult.
@Popkornium18 commented on GitHub (Jan 3, 2025):
Out of curiosity: Why is a Google API change for notifications relevant to markdown rendering? Shouldn't this API change be a general problem, whether you are using markdown or not?
@wunter8 commented on GitHub (Jan 3, 2025):
My understanding is that if you push any new updates to the Play Store at this point, Google requires that you use the new APIs. So yes, Markdown isn't specifically affected by the new APIs, but it would require an update in general, which is problematic. If we don't update at all, things keep working.
@applesoff commented on GitHub (Jul 8, 2025):
Things continuing to work is great, but what about adding new features/improvements? Markdown on Android feels like the last big thing to make the app feel complete. Plenty of PRs pending as well.
@binwiederhier commented on GitHub (Jul 8, 2025):
@wunter8 already worked on that and it's ready to go. All I have to find is the "innerer Schweinehund" to actually sit down and get that out. Android development is the worst.
@DJCrashdummy commented on GitHub (Jul 8, 2025):
@binwiederhier if you found the "innerer Schweinehund", i hope you also can fight it successfully. 😉
...i always know exactly where it is, but fighting it or at least to overcome it is the hard part. 😜
@Batwam commented on GitHub (Jul 17, 2025):
Is there any plan to also allow html formatting within markdown? It would be amazing to be able to access things like text colouring.
Also, is there a list of markdown features supported? Last time I checked, things like tables didn't work for instance.
@Velocifyer commented on GitHub (Sep 7, 2025):
You can probably still use F-Droid with a old target api
@goodevilgenius commented on GitHub (Sep 20, 2025):
Just installed the preview release on Android. This mostly seems to work well, from my limited testing so far.
However ordered lists aren't supported properly. They're rendered unordered.
So, instead of:
I get
@applesoff commented on GitHub (Sep 22, 2025):
For the new pre-release, how do we make sure "Markdown: yes" was passed? Is this per message/notification?
@wunter8 commented on GitHub (Sep 22, 2025):
@applesoff You need to send 'Markdown: yes' as a header in your request. So it is per message, yes. There isn't an option to send a Markdown message through the web app UI yet, so it'd have to be from another app (like
curl,requests.postin python, etc.)@applesoff commented on GitHub (Sep 22, 2025):
So I get the markdown format to work in the body of the message, but how do I get it to work in the title? Is this not functioning yet or did I miss a setting?
@wunter8 commented on GitHub (Sep 22, 2025):
It looks like Markdown is only supported in the message/body right now and not in the title
@binwiederhier commented on GitHub (Sep 25, 2025):
This is released as part of ntfy 1.17.8 (Android)