summaryrefslogtreecommitdiff
path: root/mdwn2man
diff options
context:
space:
mode:
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;