Class HTML::Pipeline::MarkdownFilter
In: lib/html/pipeline/markdown_filter.rb
Parent: TextFilter

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.

Context options:

  :gfm      => false    Disable GFM line-end processing
  :commonmarker_extensions => [ :table, :strikethrough,
     :tagfilter, :autolink ] Common marker extensions to include

This filter does not write any additional information to the context hash.

Methods

call   new  

Public Class methods

Public Instance methods

Convert Markdown to HTML using the best available implementation and convert into a DocumentFragment.

[Validate]