summaryrefslogtreecommitdiff
path: root/mdwn2man
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-03-31 06:55:12 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-03-31 06:55:12 +0000
commitd73eb7d9b2569ebb44fc79480b6ec2d8c1faea5d (patch)
treea7a268140d43e358dd8e1cb3d5c29deef5ab1251 /mdwn2man
parent08d6f422a7848a2462418be58fcb186f5f2cec03 (diff)
* Add a templates page to the basewiki. It will automatically list all
available templates. Rename the old templates page to wikitemplates. * Include the note template in the basewiki. * Add a popup template in the basewiki. CSS based on some by Martin Krafft. * Make the note, popup, and plugin templates detect missing variables and be self-documenting, listing the available variables.
Diffstat (limited to 'mdwn2man')
-rwxr-xr-xmdwn2man2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdwn2man b/mdwn2man
index e78a4d18c..86a524bd6 100755
--- a/mdwn2man
+++ b/mdwn2man
@@ -7,7 +7,7 @@ my $section=shift;
print ".TH $prog $section\n";
while (<>) {
- s{(\\?)\[\[([^\s\]]+)\]\]}{$1 ? "[[$2]]" : $2}eg;
+ s{(\\?)\[\[([^\s\|\]]+)(\|[^\s\]])?\]\]}{$1 ? "[[$2]]" : $2}eg;
if (/^#\s/) {
s/^#\s/.SH /;
<>; # blank;