You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for putting your effort into this package, I really like it so far! I have one issue so far:
pre-wrapping lines via "white-space: pre-wrap" currently does not work. I want to use it for pre-wrapping lines in a preformatted code section:
<prestyle="white-space: pre-wrap;"><code> #!/bin/bash
# Add this script to cron to run at whatever duration you desire.
# URL to be checked
URL="https://example.com/test.php"
# Email for alerts
EMAIL="[email protected]"
# Perform the HTTP request and extract the status code with 10 second timeout.
STATUS=$(curl -o /dev/null -s -w "%{http_code}\n" --max-time 10 $URL)
# Check if the status code is not 200
if [ "$STATUS" -ne 200 ]; then
# Send email alert
echo "The URL $URL did not return a 200 status code. Status was $STATUS." | mail -s "URL Check Alert" $EMAIL
# Instead of email, you could send a Slack/Teams/PagerDuty/Pushover/etc, etc alert, with something like:
curl -X POST https://events.pagerduty.com/...
fi
</code></pre>
Proposal
Support for white-space: pre-wrap.
The text was updated successfully, but these errors were encountered:
Use case
Thanks for putting your effort into this package, I really like it so far! I have one issue so far:
pre-wrapping lines via "white-space: pre-wrap" currently does not work. I want to use it for pre-wrapping lines in a preformatted code section:
Proposal
Support for white-space: pre-wrap.
The text was updated successfully, but these errors were encountered: