Permalink
Browse files

move-wiki: do not touch body of {{{ }}} blocks

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

0 comments on commit a0e99d5

Please sign in to comment.