]> ruin.nu Git - ndwebbie.git/commitdiff
italic and urls
authorMichael Andreen <harv@ruin.nu>
Tue, 9 Jan 2007 08:37:06 +0000 (08:37 +0000)
committerMichael Andreen <harv@ruin.nu>
Tue, 9 Jan 2007 08:37:06 +0000 (08:37 +0000)
ND/Web/Include.pm

index 9206ba489cf5947e2149ccd4e82f5bfea1b2d08c..ea7db4690b05f85206a5453e285327f7bdc33f77 100644 (file)
@@ -65,6 +65,8 @@ sub parseMarkup {
 
        $text =~ s{\n}{\n<br/>}g;
        $text =~ s{\[B\](.*?)\[/B\]}{<b>$1</b>}gi;
+       $text =~ s{\[I\](.*?)\[/I\]}{<i>$1</i>}gi;
+       $text =~ s{\[url\](.*?)\[/url\]}{<a href="$1">$1</a>}gi;
        return $text;
 }