lib/bbcoder.rb in bbcoder-0.1.3 vs lib/bbcoder.rb in bbcoder-0.1.4

- old
+ new

@@ -57,7 +57,13 @@ end tag :img, :match => /^.*(png|bmp|jpg|gif)$/ do %(<a href="#{content}"><img src="#{content}" /></a>) end + + tag :youtube do + <<-EOS +<iframe width="560" height="349" src="http://www.youtube.com/embed/#{content}" frameborder="0" allowfullscreen></iframe> + EOS + end end