From 5aee9a6eef1b56d4bbc6520e8b141ab9cb82543e Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Tue, 23 Feb 2010 00:13:37 +0100 Subject: [PATCH] move-wiki: handle more conversions Signed-off-by: Johannes Schindelin --- bin/move-wiki.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/move-wiki.sh b/bin/move-wiki.sh index 38614bab..530bc304 100755 --- a/bin/move-wiki.sh +++ b/bin/move-wiki.sh @@ -20,14 +20,17 @@ transform () { if ($_ eq "{{{\n") { print "\n"; while (<>) { - last if ($_ eq "}}}\n"); + last if ($_ eq "}}}\n" || $_ eq "}}}"); print $_; } print "\n"; next; } s/^#.*//; + s/{{{(.*?)}}}/$1<\/code>/g; s/`(.*?)`/$1<\/code>/g; + s/_(.*?)_/'\'''\''$1'\'''\''/g; + s/\*(.*?)\*/'\'''\'''\''$1'\'''\'''\''/g; s/(?<=\s)!([A-Z])/$1/g; s/(?