Fixed bug #2810 with nested tags improperly having paragraph tags placed around them.
diff --git a/system/helpers/typography_helper.php b/system/helpers/typography_helper.php
index 355f02c..aa751db 100644
--- a/system/helpers/typography_helper.php
+++ b/system/helpers/typography_helper.php
@@ -152,8 +152,8 @@
 		 * ends.  Later on we'll do some further clean up.

 		 *

 		 */

-		$str = preg_replace("#(<.*?)(".$this->block_elements.")(.*?>)#", "</p>\\1\\2\\3", $str);

-		$str = preg_replace("#(</.*?)(".$this->block_elements.")(.*?>)#", "\\1\\2\\3<p>", $str);

+		$str = preg_replace("#(<)(".$this->block_elements.")(.*?>)#", "</p>\\1\\2\\3", $str);

+		$str = preg_replace("#(</)(".$this->block_elements.")(.*?>)#", "\\1\\2\\3<p>", $str);

 	

 		/*

 		 * Convert "ignore" tags to temporary marker