- def html_parser
- @@html_renderer ||= Redcarpet::Render::XHTML.new({
- :filter_html => true, :safe_links_only => true, :link_attributes => { :rel => "nofollow" }
- })
- @@html_parser ||= Redcarpet::Markdown.new(@@html_renderer, {
- :no_intra_emphasis => true, :autolink => true, :space_after_headers => true
- })
+ def self.html_parser
+ @html_parser ||= Redcarpet::Markdown.new(html_renderer, :no_intra_emphasis => true, :autolink => true, :space_after_headers => true)