From 52aab71e2268171618efe0f8f8e683b9bc5406f6 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Sat, 15 May 2021 23:51:02 +0200 Subject: [PATCH] widget/reply: formatting syntax for ~strike~ and `code` Remaining inline options in common chat systems. --- upload.inc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/upload.inc.php b/upload.inc.php index 0ee432b..4f5c5fe 100644 --- a/upload.inc.php +++ b/upload.inc.php @@ -60,6 +60,8 @@ function messagehtml($input) "/\n/" => "

\n

", # newlines start paragraphs '/_(? '$1', # italic '/\*(? '$1', # bold + '/~(? '$1', # stricken + '/`(? '$1', # monospace ]; $html = preg_replace(array_keys($markup), array_values($markup), htmlspecialchars($input)); return "

$html

"; -- 2.30.0