Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
move-wiki: do not touch body of {{{ }}} blocks
Browse files Browse the repository at this point in the history
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
  • Loading branch information
dscho committed Feb 22, 2010
1 parent 4193811 commit a0e99d5
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions bin/move-wiki.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a0e99d5

Please sign in to comment.