Class: Thredded::HtmlPipeline::AutolinkFilter

Inherits:
HTML::Pipeline::Filter
  • Object
show all
Defined in:
lib/thredded/html_pipeline/autolink_filter.rb

Overview

HTML Filter for auto_linking urls in HTML.

AutolinkFilter is required because Kramdown does not autolink by default. github.com/gettalong/kramdown/issues/306

Instance Method Summary collapse

Instance Method Details

#callObject



10
11
12
# File 'lib/thredded/html_pipeline/autolink_filter.rb', line 10

def call
  Rinku.auto_link(html, :all)
end