|
@@ -170,9 +170,8 @@ task :autofix do
|
|
|
text = "\"#{text}\""
|
|
|
elsif link =~ /\A[\[\]'"\\]*\z/
|
|
|
text.gsub!(/(?<!\\)'/) { "\\'" }
|
|
|
- text.gsub!(/(?<!\\)"/) { "\\\"" }
|
|
|
- text.gsub!(/(?<!\\)\\(?!['"])/) { "\\\\" }
|
|
|
- text = "'" + (text.gsub("'") { "\\'" }) + "'"
|
|
|
+ text.gsub!(/(?<!\\)\\(?!')/) { "\\\\" }
|
|
|
+ text = "'" + text + "'"
|
|
|
end
|
|
|
"[[#{text}->#{dest}]#{link_mods}]"
|
|
|
else
|