Sha256: 83104180cdc2f70763efe847d7c2324afde646a13c40bad093c02d8262756cfc

Contents?: true

Size: 390 Bytes

Versions: 42

Compression:

Stored size: 390 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

42 entries across 42 versions & 2 rubygems

Version Path
thredded-1.1.0 lib/thredded/html_pipeline/autolink_filter.rb
thredded-1.0.1 lib/thredded/html_pipeline/autolink_filter.rb
thredded-1.0.0 lib/thredded/html_pipeline/autolink_filter.rb
thredded-0.16.16 lib/thredded/html_pipeline/autolink_filter.rb
thredded-0.16.15 lib/thredded/html_pipeline/autolink_filter.rb
thredded-0.16.14 lib/thredded/html_pipeline/autolink_filter.rb
thredded-0.16.13 lib/thredded/html_pipeline/autolink_filter.rb
thredded-0.16.12 lib/thredded/html_pipeline/autolink_filter.rb
thredded-0.16.11 lib/thredded/html_pipeline/autolink_filter.rb
thredded-0.16.10 lib/thredded/html_pipeline/autolink_filter.rb
thredded-0.16.9 lib/thredded/html_pipeline/autolink_filter.rb
thredded-0.16.8 lib/thredded/html_pipeline/autolink_filter.rb
thredded-0.16.7 lib/thredded/html_pipeline/autolink_filter.rb
thredded-0.16.6 lib/thredded/html_pipeline/autolink_filter.rb
thredded-0.16.5 lib/thredded/html_pipeline/autolink_filter.rb
thredded-0.16.4 lib/thredded/html_pipeline/autolink_filter.rb
thredded-0.16.3 lib/thredded/html_pipeline/autolink_filter.rb
thredded-0.16.1 lib/thredded/html_pipeline/autolink_filter.rb
thredded-0.16.0 lib/thredded/html_pipeline/autolink_filter.rb
thredded-0.15.5 lib/thredded/html_pipeline/autolink_filter.rb