Sha256: c3dcc5a01c479f02f6ea4b0bca8b8e26e29aff274ea6c25c1927a45879f80ea7

Contents?: true

Size: 389 Bytes

Versions: 12

Compression:

Stored size: 389 Bytes

Contents

# frozen_string_literal: true
module Thredded
  module HtmlPipeline
    # HTML Filter for auto_linking urls in HTML.
    #
    # AutolinkFilter is required because Kramdown does not autolink by default.
    # https://github.com/gettalong/kramdown/issues/306
    class AutolinkFilter < ::HTML::Pipeline::Filter
      def call
        Rinku.auto_link(html, :all)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
thredded-0.12.1 lib/thredded/html_pipeline/autolink_filter.rb
thredded-0.12.0 lib/thredded/html_pipeline/autolink_filter.rb
thredded-0.11.1 lib/thredded/html_pipeline/autolink_filter.rb
thredded-0.11.0 lib/thredded/html_pipeline/autolink_filter.rb
thredded-0.10.1 lib/thredded/html_pipeline/autolink_filter.rb
thredded-0.10.0 lib/thredded/html_pipeline/autolink_filter.rb
thredded-0.9.4 lib/thredded/html_pipeline/autolink_filter.rb
thredded-0.9.3 lib/thredded/html_pipeline/autolink_filter.rb
thredded-0.9.2 lib/thredded/html_pipeline/autolink_filter.rb
thredded-0.9.1 lib/thredded/html_pipeline/autolink_filter.rb
thredded-0.8.4 lib/thredded/html_pipeline/autolink_filter.rb
thredded-0.8.2 lib/thredded/html_pipeline/autolink_filter.rb