class Decidim::Comments::Markdown
This class parses a string from plain text (markdown) and renders it as HTML.
Private Instance Methods
markdown()
click to toggle source
# File lib/decidim/comments/markdown.rb, line 14 def markdown @markdown ||= ::Redcarpet::Markdown.new(renderer) end
renderer()
click to toggle source
# File lib/decidim/comments/markdown.rb, line 18 def renderer @renderer ||= Decidim::Comments::MarkdownRender.new end