lib/lalala/markdown/handlers/vimeo.rb in lalala-4.0.0.dev.388 vs lib/lalala/markdown/handlers/vimeo.rb in lalala-4.0.0.dev.393
- old
+ new
@@ -21,18 +21,20 @@
return ""
end
id = $1
- helpers.content_tag(
- :iframe,
- "",
- width: @options[:width],
- height: @options[:height],
- src: "//player.vimeo.com/video/#{id}?portrait=#{@options[:show_portrait]}&title=#{@options[:show_title]}&badge=#{@options[:show_badge]}&byline=#{@options[:show_byline]}&color=#{@options[:color]}&wmode=transparent",
+ helpers.content_tag :span, class: "embed-container is-vimeo" do
+ helpers.content_tag(
+ :iframe,
+ "",
+ width: @options[:width],
+ height: @options[:height],
+ src: "//player.vimeo.com/video/#{id}?portrait=#{@options[:show_portrait]}&title=#{@options[:show_title]}&badge=#{@options[:show_badge]}&byline=#{@options[:show_byline]}&color=#{@options[:color]}&wmode=transparent",
- frameborder: 0,
- allowfullscreen: true
- )
+ frameborder: 0,
+ allowfullscreen: true
+ )
+ end
end
end