X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/cc9044a1aa3f79cda743040573d49bc71fb7805f..52aab71e2268171618efe0f8f8e683b9bc5406f6:/upload.inc.php 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
";