class MarkdownUI::Parser
Public Class Methods
new()
click to toggle source
# File lib/markdown-ui/parser.rb, line 3 def initialize @parser = Redcarpet::Markdown.new(MarkdownUI::Renderer, quote: true, tables: true, xhtml: true) end
Public Instance Methods
render(markdown)
click to toggle source
# File lib/markdown-ui/parser.rb, line 7 def render(markdown) @parser.render(markdown) end