This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

move-wiki: handle more conversions

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
  • Loading branch information...
1 parent a0e99d5 commit 5aee9a6eef1b56d4bbc6520e8b141ab9cb82543e @kusma kusma committed with dscho Feb 22, 2010
Showing with 4 additions and 1 deletion.
  1. +4 −1 bin/move-wiki.sh
View
@@ -20,14 +20,17 @@ transform () {
if ($_ eq "{{{\n") {
print "<code>\n";
while (<>) {
- last if ($_ eq "}}}\n");
+ last if ($_ eq "}}}\n" || $_ eq "}}}");
print $_;
}
print "</code>\n";
next;
}
s/^#.*/<!-- $& -->/;
+ s/{{{(.*?)}}}/<code>$1<\/code>/g;
s/`(.*?)`/<code>$1<\/code>/g;
+ s/_(.*?)_/'\'''\''$1'\'''\''/g;
+ s/\*(.*?)\*/'\'''\'''\''$1'\'''\'''\''/g;
s/(?<=\s)!([A-Z])/$1/g;
s/(?<!\[)\[(?![a-z]*:)([^\] ]+) +([^\]]+)\]/[[MSysGit:$1|$2]]/g;
s/(?<!\[)\[(?![a-z]*:)([^\] ]+)\]/[[MSysGit:$1|$1]]/g;

0 comments on commit 5aee9a6

Please sign in to comment.