Enable markdown (#172)

This commit is contained in:
op4lat 2025-05-07 05:29:21 -04:00 committed by GitHub
parent f4e51121fe
commit e4b5aaeb9d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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