caronc / apprise

Apprise - Push Notifications that work with just about every platform!
https://hub.docker.com/r/caronc/apprise
BSD 2-Clause "Simplified" License
10.91k stars 384 forks source link

ntfy:// markdown support added #1056

Closed caronc closed 5 months ago

caronc commented 5 months ago

Description:

Related issue (if applicable): #1053

Simply add support for ?format=markdown that can be applied to the Apprise ntfy:// URL. Default is still to pass as is (text) to avoid breaking existing system setup.

Checklist

Testing

Anyone can help test this source code as follows:

# Create a virtual environment to work in as follows:
python3 -m venv apprise

# Change into our new directory
cd apprise

# Activate our virtual environment
source bin/activate

# Install the branch
pip install git+https://github.com/caronc/apprise.git@1053-ntfy-markdown-support

# Test out the changes with the following command:
apprise -t "Test Title" -b "Test Message" \
  "ntfy://mytopic/?format=markdown"
codecov-commenter commented 5 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (31a4f2e) 99.27% compared to head (382dce5) 99.27%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1056 +/- ## ======================================= Coverage 99.27% 99.27% ======================================= Files 135 135 Lines 17600 17603 +3 Branches 3592 3593 +1 ======================================= + Hits 17472 17475 +3 Misses 119 119 Partials 9 9 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.