# File lib/maruku/input/parse_block.rb, line 235 def read_raw_html(src) h = HTMLHelper.new begin h.eat_this(l=src.shift_line) # puts "\nBLOCK:\nhtml -> #{l.inspect}" while src.cur_line and not h.is_finished? l=src.shift_line # puts "html -> #{l.inspect}" h.eat_this "\n"+l end rescue Exception => e ex = e.inspect + e.backtrace.join("\n") maruku_error "Bad block-level HTML:\n#{add_tabs(ex,1,'|')}\n", src end if not (h.rest =~ /^\s*$/) maruku_error "Could you please format this better?\n"+ "I see that #{h.rest.inspect} is left after the raw HTML.", src end raw_html = h.stuff_you_read return md_html(raw_html) end