Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix bug that '|' char is inserted after every chars

Signed-off-by: ataka <masayuki.ataka@gmail.com>
  • Loading branch information...
commit 80cd88b05e0d98aa32df6e643e514a038f0ba5b5 1 parent f29ae10
@ataka authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  convert.rb
View
2  convert.rb
@@ -25,7 +25,7 @@
body.gsub!(/==\s(.+?)\s==/, "h2. #{'\1'} \n\n")
body.gsub!(/=\s(.+?)\s=[\s\n]*/, "h1. #{'\1'} \n\n")
# table
- body.gsub!(/||/, "|")
+ body.gsub!(/\|\|/, "|")
# link
body.gsub!(/\[(http[^\s\[\]]+)\s([^\[\]]+)\]/, ' "\2":\1' )
body.gsub!(/\[([^\s]+)\s(.+)\]/, ' [[\1 | \2]] ')
Please sign in to comment.
Something went wrong with that request. Please try again.