From 52aab71e2268171618efe0f8f8e683b9bc5406f6 Mon Sep 17 00:00:00 2001
From: Mischa POSLAWSKY
", # 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