require 'uri'
require 'net/http'

AutoHtml.add_filter(:instagram).with(:width => 616, :height => 714) do |text, options|
  text << '/' unless text.end_with?('/')
  width = options[:width]
  height = options[:height]
  regex = %r{https?:\/\/(www.)?instagr(am\.com|\.am)/p/.+}
  text.gsub(regex) do
    %{<iframe src="#{text}embed" height="#{height}" width="#{width}" frameborder="0" scrolling="no"></iframe>}
  end
end
require 'uri'
require 'net/http'

AutoHtml.add_filter(:instagram) do |text|
  text << '/' unless text.end_with?('/')
  regex = %r{https?:\/\/(www.)?instagr(am\.com|\.am)/p/.+}
  text.gsub(regex) do
    %{<iframe src="#{text}embed" height="714" width="616" frameborder="0" scrolling="no"></iframe>}
  end
end
Remove height/width options as they don't make sense for this embed
Remove height/width options as they don't make sense for this embed
