From e4b5aaeb9d4f69293eff16404e8f9aedf9886169 Mon Sep 17 00:00:00 2001 From: op4lat <155382511+op4lat@users.noreply.github.com> Date: Wed, 7 May 2025 05:29:21 -0400 Subject: [PATCH] Enable markdown (#172) --- notify_templates/notify_ntfy-sh.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/notify_templates/notify_ntfy-sh.sh b/notify_templates/notify_ntfy-sh.sh index dc6d24f..686c7a4 100644 --- a/notify_templates/notify_ntfy-sh.sh +++ b/notify_templates/notify_ntfy-sh.sh @@ -11,10 +11,17 @@ trigger_notification() { # Modify to fit your setup: NtfyUrl="ntfy.sh/YourUniqueTopicName" + if [[ "$PrintMarkdownURL" == true ]]; then + ContentType="Markdown: yes" + else + ContentType="Markdown: no" #text/plain + fi + curl -sS -o /dev/null --show-error --fail \ -H "Title: $MessageTitle" \ + -H "$ContentType" \ -d "$MessageBody" \ - $NtfyUrl + "$NtfyUrl" } send_notification() {