# File lib/maruku/helpers.rb, line 83 def md_html(raw_html, al=nil) e = md_el(:raw_html, [], {:raw_html=>raw_html}) begin # remove newlines and whitespace at begin # end end of string, or else REXML gets confused raw_html = raw_html.gsub(/\A\s*</,'<'). gsub(/>[\s\n]*\Z/,'>') raw_html = "<marukuwrap>#{raw_html}</marukuwrap>" e.instance_variable_set :@parsed_html, REXML::Document.new(raw_html) rescue #Exception => ex e.instance_variable_set :@parsed_html, nil # tell_user "Malformed block of HTML:\n"+ # add_tabs(raw_html,1,'|') # " #{raw_html.inspect}\n\n"+ex.inspect end e end