class Hamdown::MdRegs::Images
class with logic of markdown's images
Constants
- REGS
Private Instance Methods
text_handler(text, scan_res)
click to toggle source
# File lib/hamdown/md_regs/images.rb 11 def text_handler(text, scan_res) 12 html_scan = scan_res.map { |i| md_to_html(i) } 13 scan_res.each_with_index do |str, index| 14 s = html_scan[index] 15 # delete \n at end of string 16 text.gsub!(str, s[0..s.size - 2]) 17 end 18 19 text 20 end