lib/maruku/output/to_html.rb
# Attribute: filter_html
# Scope: document
#
# If true, raw HTML is discarded from the output.
#


If true, raw HTML is discarded from the output.
If true raw HTML is discarded from the output .
def to_html_raw_html
    return [] if get_setting(:filter_html)
    return parsed_html.to_html if parsed_html
    raw_html = self.raw_html
    tell_user "Wrapping bad html in a PRE with class 'markdown-html-error'\n" +
      raw_html.gsub(/^/, '|')
    pre = xelem('pre')
    pre['style'] = 'border: solid 3px red; background-color: pink'
    pre['class'] = 'markdown-html-error'
    pre << xtext("Maruku could not parse this XML/HTML: \n#{raw_html}")
  end
def to_html_raw_html return [ ] if get_setting ( :filter_html ) return parsed_html . to_html if parsed_html raw_html = self . raw_html tell_user "Wrapping bad html in a PRE with class 'markdown-html-error'\n" + raw_html . gsub ( / ^ / , '|' ) pre = xelem ( 'pre' ) pre [ 'style' ] = 'border: solid 3px red; background-color: pink' pre [ 'class' ] = 'markdown-html-error' pre << xtext ( "Maruku could not parse this XML/HTML: \n#{raw_html}" ) end
Attribute: filter_html
Scope: document
Attribute : filter_html Scope : document
# If there's no parsed HTML # Creates red box with offending HTML