Enable markdown (#172)

This commit is contained in:
op4lat
2025-05-07 05:29:21 -04:00
committed by GitHub
parent f4e51121fe
commit e4b5aaeb9d

View File

@@ -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() {