Defect #1843 » defect-1843.patch
migrate_from_trac.rake (working copy) | ||
---|---|---|
260 | 260 |
text = text.gsub(/^(\=+)\s(.+)\s(\=+)/) {|s| "\nh#{$1.length}. #{$2}\n"} |
261 | 261 |
# External Links |
262 | 262 |
text = text.gsub(/\[(http[^\s]+)\s+([^\]]+)\]/) {|s| "\"#{$2}\":#{$1}"} |
263 |
# Special cases like [wiki:"TextXXX"] or [wiki:"This is a page"] |
|
264 |
text = text.gsub(/\[wiki\:"([^\"]+)\"\]/, '[[\1]]') |
|
263 | 265 |
# Internal Links |
264 | 266 |
text = text.gsub(/\[\[BR\]\]/, "\n") # This has to go before the rules below |
265 | 267 |
text = text.gsub(/\[\"(.+)\".*\]/) {|s| "[[#{$1.delete(',./?;|:')}]]"} |