]> ruin.nu Git - ndwebbie.git/blobdiff - ND/Web/Include.pm
italic and urls
[ndwebbie.git] / 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;
 }