diff --git a/inc/config.php b/inc/config.php index d1cbc137..d869b5d1 100644 --- a/inc/config.php +++ b/inc/config.php @@ -101,6 +101,8 @@ // Automatically convert things like "..." to Unicode characters ("�") define('AUTO_UNICODE', true, true); + // Use some Wiki-like syntax (''em'', '''strong''', ==Heading==, etc) + define('WIKI_MARKUP', true, true); // Whether to turn URLs into functional links define('MARKUP_URLS', true, true); define('URL_REGEX', '/' . '(https?|ftp):\/\/' . '([\w\-]+\.)+[a-zA-Z]{2,6}' . '(\/([\w\-~\.#\/?=&;:+%]+))?' . '/', true); diff --git a/inc/functions.php b/inc/functions.php index 0c1210e5..4e03a531 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -209,10 +209,13 @@ if(MARKUP_URLS) $body = preg_replace(URL_REGEX, "$0", $body); - $body = preg_replace("/(^|\n)([\s]+)?(>)([^\n]+)?($|\n)/m", '$1$2$3$4$5', $body); - $body = preg_replace("/(^|\n)==(.+?)==\n?/m", "