Method: HTML::Pipeline::AutolinkFilter#call

Defined in:
lib/html/pipeline/autolink_filter.rb

#callObject



20
21
22
23
24
25
26
27
28
# File 'lib/html/pipeline/autolink_filter.rb', line 20

def call
  return html if context[:autolink] == false

  skip_tags = context[:skip_tags]
  flags = 0
  flags |= context[:flags] if context[:flags]

  Rinku.auto_link(html, :urls, context[:link_attr], skip_tags, flags)
end