Compact funcs

master
Marvin Johanning 2022-02-07 17:22:03 +01:00
parent 082581b36a
commit 763972394f
1 changed files with 1 additions and 2 deletions

View File

@ -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