diff --git a/wiky.inc.php b/wiky.inc.php index e00f3ff..5e93fb9 100644 --- a/wiky.inc.php +++ b/wiky.inc.php @@ -15,6 +15,8 @@ class wiky { public function __construct($analyze=false) { $this->patterns=array( + "/\r\n/", + // Headings "/^==== (.+?) ====$/m", // Subsubheading "/^=== (.+?) ===$/m", // Subheading @@ -57,6 +59,8 @@ public function __construct($analyze=false) { "/^[^><\n\r]+$/m", // Ones with no elements ); $this->replacements=array( + "\n", + // Headings "

$1

", "

$1

",