 -		return $text;
 +	return wordwrap($text, 72);
  }
-
-
+ 
+ 
 diff --git a/include/parser.php b/include/parser.php
-index 5d564d2..fde6e8b 100644
+index b7eb4bd..a98356c 100644
 --- a/include/parser.php
 +++ b/include/parser.php
 @@ -64,6 +64,7 @@ $smilies = array(

-	global $pun_config, $lang_common, $pun_user;
+	global $pun_config, $cur_post;
+	static $textile = null;

 	if ($pun_config['o_censoring'] == '1')
+	{
 		$text = censor_words($text);
+	}

-	// Convert applicable characters to HTML entities
-	$text = pun_htmlspecialchars($text);
-

+	{
+		$textile = new Textpattern\Fluxbb\Textile\Parser();
+	}
 
-	// Deal with newlines, tabs and multiple spaces
-	$pattern = array("\n", "\t", '  ', '  ');
-	$replace = array('<br />', '&#160; &#160; ', '&#160; ', ' &#160;');
