Fenced code blocks don't render monospace outside the web app
Summary
The docs for Markdown formatting (https://docs.ntfy.sh/publish/#markdown-formatting)
list fenced code blocks (like this) and inline code as supported,
and note this is currently "web app only for now". Confirmed live on Android: with
X-Markdown: yes set, a fenced code block no longer shows the literal backtick
characters, but the content is still rendered in the regular proportional system
font, not a monospace one — so anything relying on fixed-width alignment (a small
table, a log excerpt, a diff, a stack trace) comes out visually broken even though
the Markdown syntax itself is being parsed.
Why this matters beyond one use case
ntfy is widely used to pipe server/CI/build notifications (deploy status, test results, error reports, log tails) — exactly the kind of content where a faithful, fixed-width "verbatim" reproduction isn't a nice-to-have, it's the whole point. Right now that only works if the recipient happens to open the message in the web app.
Concrete example
A typical error-monitoring alert piped through ntfy might contain a Python traceback:
Traceback (most recent call last):
File "/app/worker.py", line 142, in process_job
result = handler.run(payload)
File "/app/handlers/sync.py", line 58, in run
conn = self.pool.acquire(timeout=5)
File "/app/db/pool.py", line 91, in acquire
raise PoolTimeoutError(f"no connection available after {timeout}s")
db.pool.PoolTimeoutError: no connection available after 5sOn the web app the indentation lines up and the nesting is easy to follow. On Android (tested on a current device/app version) the proportional font collapses the indentation, making it hard to tell which frame called which.
Ask
Render fenced code blocks (and ideally inline code) in a monospace font on the Android and iOS apps too, matching the web app's existing behavior — no new Markdown syntax needed, just extending the existing styling to the mobile clients so "supported Markdown features" means the same thing on every platform.
Happy to test against a real device if that's useful.
Source: binwiederhier/ntfy