X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;ds=sidebyside;f=include.pl;h=eab857ee916101c6c0fff8631c96d099577c4eda;hb=073463a38ef44b632155ffd6f4e61f4e1370a821;hp=cc7bbe6850fa43b880c8613c92dd110f804ddac8;hpb=9e13e343c9a55ca8a765ebc138779dcec9146829;p=ndwebbie.git
diff --git a/include.pl b/include.pl
index cc7bbe6..eab857e 100644
--- a/include.pl
+++ b/include.pl
@@ -36,4 +36,12 @@ sub isBC {
return exists $ND::GROUPS{BC};
}
+sub parseMarkup {
+ my ($text) = @_;
+
+ $text =~ s{\n}{\n
}g;
+ $text =~ s{\[B\](.*?)\[B\]}{$1};
+ return $text;
+}
+
1;