aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcloudburst <us@conep.one>2023-06-12 20:14:51 +0100
committercloudburst <us@conep.one>2023-06-12 20:14:51 +0100
commitc182f2b15a32a04f6011bfb672b901bca09cc36c (patch)
treec48b9b091e6643e2ded75dba80c71fcd62f97985
parent032d46b264322c6466f8d68d5be79a11d349adb1 (diff)
downloadrubyjubilee-c182f2b15a32a04f6011bfb672b901bca09cc36c.tar.gz
rubyjubilee-c182f2b15a32a04f6011bfb672b901bca09cc36c.tar.bz2
rubyjubilee-c182f2b15a32a04f6011bfb672b901bca09cc36c.zip
fix bug
-rw-r--r--includes/main.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/includes/main.php b/includes/main.php
index 9e86507..5eb1d8c 100644
--- a/includes/main.php
+++ b/includes/main.php
@@ -71,5 +71,8 @@ function parseMarkdown(string $txt): string {
// Pre-parse underlines since Parsedown doesn't support them, but we need to support them.
$txt = preg_replace("/[\_]{2}([^\_]+)[\_]{2}/", "<span style=\"text-decoration: underline;\">$1</span>", $txt);
+ // Pre-parse crossouts cos Parsedown is getting mad on prod server.
+ $txt = preg_replace("/[\~]{2}([^\~]+)[\~]{2}/", "<del>$1</del>", $txt);
+
return $Parsedown->text($txt);
} \ No newline at end of file