- " while $ul++
- " if $stars or $hashes;
$line .= "
\n
" if !defined($compact); print "$line"; $stars = $hashes = undef; } print "
- " while $ol++
\1<\/p>/mg; $chunks[$i] =~ s/^~ (.*)/
\1<\/p>/mg;
$chunks[$i] =~ s/\*(\w+)\*/\1<\/b>/mg;
$chunks[$i] =~ s/_(\w+)_/\1<\/i>/mg;
$chunks[$i] =~ s/\[(\S*\.png)\]//g;
$chunks[$i] =~ s/\[(\S*\.jpg) (.*?)\]/
/g;
$chunks[$i] =~ s/\[(\S*\.html?)\]/\1<\/a>/g;
$chunks[$i] =~ s/\[(.*?) (\S*\.html?)\]/\1<\/a>/g;
$chunks[$i] =~ s/\[(http:\S*) (.*?)\]/\2<\/a>/g;
$chunks[$i] =~ s/\[:(.*?):\]/\1<\/tt>/g;
$chunks[$i] =~ s/\[:(.*?):\]/
\1<\/pre>/msg;
$chunks[$i] =~ s/\["(.*?)"\]/
\1<\/blockquote>/msg;
$chunks[$i] =~ s/\[&(#?\w+);]/&\1;/g;
}
$body=join('',@chunks);
print "\n
$title
\n\n";
print "" while $ul++
\n" while $ul-->0;
print "\n" while $ol-->0;
print "\n\n" while $ol++
\n
" if !defined($compact);
print "$line";
$stars = $hashes = undef;
}
print "