class Decidim::DecidimAwesome::ContentRenderers::MarkdownRenderer
A renderer that processes markdown
Public Instance Methods
render(options = { filter_html: true, autolink: true, no_intra_emphasis: true, fenced_code_blocks: true, disable_indented_code_blocks: true, tables: true })
click to toggle source
@return [String] the content ready to display (contains HTML)
# File lib/decidim/decidim_awesome/content_renderers/markdown_renderer.rb, line 11 def render(options = { filter_html: true, autolink: true, no_intra_emphasis: true, fenced_code_blocks: true, disable_indented_code_blocks: true, tables: true }) md = Redcarpet::Markdown.new(Redcarpet::Render::HTML, options).render(content) "<div class=\"awesome-markdown-editor\">#{md}</div>" end