class HTML::Pipeline::MarkdownFilter
HTML
Filter
that converts Markdown text into HTML
and converts into a DocumentFragment. This is different from most filters in that it can take a non-HTML as input. It must be used as the first filter in a pipeline.
This filter does not write any additional information to the context hash.
Public Instance Methods
call()
click to toggle source
# File lib/html/pipeline/markdown_filter.rb, line 63 def call lfm = Redcarpet::Markdown.new LFMarkdown, LFMarkdown::PARSER_OPTIONS lfm.render @text end