Compact funcs
parent
082581b36a
commit
763972394f
|
@ -10,8 +10,7 @@ class String
|
|||
|
||||
markdown.each_line do |line|
|
||||
if line =~ /^\\/ then
|
||||
line.slice!(0)
|
||||
parsed << line
|
||||
parsed << line.slice!(0)
|
||||
else
|
||||
line.gsub!(/\[([^\]]+)\]\(([^)]+)\)/, '\1')
|
||||
if line =~ /^https?:/ then
|
||||
|
|
Loading…
Reference in New Issue