aboutsummaryrefslogtreecommitdiff
path: root/mdwn2man
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-03-21 01:18:01 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-03-21 01:18:01 +0000
commit773731743df52d2ef2d8ce93c095be981bb9bfc8 (patch)
treefef19536fbbd1010150203662ee26e76243808b6 /mdwn2man
parentb7c86dda2f900dc991d1f6becda56ba3300cccce (diff)
downloadikiwiki-773731743df52d2ef2d8ce93c095be981bb9bfc8.tar
ikiwiki-773731743df52d2ef2d8ce93c095be981bb9bfc8.tar.gz
add --diffurl, if set RecentChanges has links to svn diffs
Diffstat (limited to 'mdwn2man')
-rwxr-xr-xmdwn2man3
1 files changed, 1 insertions, 2 deletions
diff --git a/mdwn2man b/mdwn2man
index 13b1b84a8..57c41c865 100755
--- a/mdwn2man
+++ b/mdwn2man
@@ -4,12 +4,11 @@
print ".TH ikiwiki 1\n";
while (<>) {
+ s{(\\?)\[\[([^\s\]]+)\]\]}{$1 ? "[[$2]]" : $2}eg;
s/^#\s/.SH /;
s/^\s+//;
s/^Warning:.*//g;
s/^$/.PP\n/;
- s/\[\[//g;
- s/\]\]//g;
s/\`//g;
s/^\*\s+(.*)/.IP "$1"/;
next if $_ eq ".PP\n" && $skippara;