--- wp-includes/functions-formatting.php.orig Sun May 16 17:14:14 2004 +++ wp-includes/functions-formatting.php Thu Jun 3 10:36:26 2004 @@ -74,6 +74,7 @@ $pee = preg_replace('!(]*>)\s*
!', "$1", $pee); $pee = preg_replace('!
(\s*)!', '$1', $pee); $pee = preg_replace('!()(.*?)!ise', " stripslashes('$1') . clean_pre('$2') . '' ", $pee); + $pee = preg_replace('!()(.*?)!ise', " stripslashes('$1') . clean_pre('$2') . '' ", $pee); return $pee; } @@ -103,7 +104,7 @@ $content = preg_replace('/(.+?)<\/category>/','',$content); // Converts lone & characters into & (a.k.a. &) - $content = preg_replace('/&([^#])(?![a-z]{1,8};)/i', '&$1', $content); + $content = preg_replace('/&([^#])(?![a-z]+;)/i', '&$1', $content); // Fix Word pasting $content = strtr($content, $wp_htmltranswinuni); --- /Users/distler/src/wordpress/wp-content/plugins/markdown.php Mon Apr 19 03:58:36 2004 +++ wp-content/plugins/markdown.php Thu May 20 11:42:32 2004 @@ -205,7 +205,7 @@ $text = ''; # rebuild $text from the tokens $in_pre = 0; # Keep track of when we're inside
 or  tags.
-	$tags_to_skip = "!<(/?)(?:pre|code|kbd|script)[\s>]!";
+	$tags_to_skip = "!<(/?)(?:pre|code|kbd|math|script)[\s>]!";
 
 	foreach ($tokens as $cur_token) {
 		if ($cur_token[0] == 'tag') {
--- wp-content/plugins/textile1.php.orig	Mon Apr 19 03:31:30 2004
+++ wp-content/plugins/textile1.php	Thu May 20 13:01:08 2004
@@ -218,15 +218,17 @@
 	foreach($text as $line){
 
 			if(preg_match('/
/i',$line)){$pre = true; }
+			if(preg_match('/","\n",$line);
 			}
-				if(preg_match('/<\/pre>/i',$line)){$pre = false; }
+				if(preg_match('/<\/pre>/i',$line)){$pre = false;}
+				if(preg_match('/<\/math>/i',$line)){$math = false;}
 
 			if ($list == '' && preg_match('/^\t\t
  • /',$line)){ $list = "ul"; --- wp-content/plugins/textile2.php.orig Mon Apr 19 03:31:33 2004 +++ wp-content/plugins/textile2.php Thu May 20 13:03:34 2004 @@ -266,6 +266,7 @@ foreach($text as $line) { if (preg_match('/
    /i',$line)) { $pre = true; }
    +		if (preg_match('/$1

    ",$line); - $line=($pre==true) ? str_replace("

    ","\n",$line):$line; + $line=($pre==true || $math == true) ? str_replace("
    ","\n",$line):$line; if (preg_match('/<\/pre>/i',$line)) { $pre = false; } + if (preg_match('/<\/math>/i',$line)) { $math = false; } $out[] = $line; }