Index: migrate_from_trac.rake =================================================================== --- migrate_from_trac.rake (revision 1941) +++ migrate_from_trac.rake (working copy) @@ -260,6 +260,8 @@ text = text.gsub(/^(\=+)\s(.+)\s(\=+)/) {|s| "\nh#{$1.length}. #{$2}\n"} # External Links text = text.gsub(/\[(http[^\s]+)\s+([^\]]+)\]/) {|s| "\"#{$2}\":#{$1}"} + # Special cases like [wiki:"TextXXX"] or [wiki:"This is a page"] + text = text.gsub(/\[wiki\:"([^\"]+)\"\]/, '[[\1]]') # Internal Links text = text.gsub(/\[\[BR\]\]/, "\n") # This has to go before the rules below text = text.gsub(/\[\"(.+)\".*\]/) {|s| "[[#{$1.delete(',./?;|:')}]]"}