From bb5028ff29ca35b355c4d7e5691c8f6aa285bb47 Mon Sep 17 00:00:00 2001 From: "Fletcher T. Penney" Date: Sun, 9 Sep 2007 20:58:44 +0000 Subject: [PATCH] Look for '>' instead of '>' since we are letting Oddmuse do the encoding --- modules/markdown.pl | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/modules/markdown.pl b/modules/markdown.pl index 72418ca7..4a0309da 100644 --- a/modules/markdown.pl +++ b/modules/markdown.pl @@ -30,7 +30,7 @@ # Requires MultiMarkdown 2.0.a2 or higher -$ModulesDescription .= '

$Id: markdown.pl,v 1.39 2007/09/09 16:13:22 fletcherpenney Exp $

'; +$ModulesDescription .= '

$Id: markdown.pl,v 1.40 2007/09/09 20:58:44 fletcherpenney Exp $

'; use vars qw!%MarkdownRuleOrder @MyMarkdownRules $MarkdownEnabled $SmartyPantsEnabled!; @@ -142,12 +142,15 @@ sub MarkdownGetCluster { # routine, so I am disabling it for now, and will have to "re-fix things" when # I figure out if anything is now broken.... - -*xxQuoteHtml = *MarkdownQuoteHtml; +*oldQuoteHtml = *QuoteHtml; +*QuoteHtml = *MarkdownQuoteHtml; sub MarkdownQuoteHtml { my $html = shift; + $html = oldQuoteHtml($html); + +# $html =~ /<http\; return $html; } @@ -202,7 +205,7 @@ sub DoWikiWords { }{ my $label = $1; $label =~ s{ - ([\s\>])($WikiWord) + ([\s\>])($WikiWord) }{ $1 ."\\" . $2 }xsge; @@ -242,7 +245,7 @@ sub DoWikiWords { # WikiWords if ($WikiLinks) { $text =~ s{ - ([\s\>])($WikiWord\b) + ([\s\>])($WikiWord\b) }{ $1 . CreateWikiLink($2) }xsge; @@ -401,7 +404,7 @@ sub AntiSpam { sub NewDoAutoLinks { my $text = shift; - $text =~ s{<((https?|ftp|dict):[^'">\s]+)>}{$1}gi; + $text =~ s{<((https?|ftp|dict):[^'">\s]+)>}{$1}gi; # Email addresses: $text =~ s{ @@ -412,7 +415,7 @@ sub NewDoAutoLinks { \@ [-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+ ) - > + > }{ Markdown::_EncodeEmailAddress( Markdown::_UnescapeSpecialChars($1) ); }egix;