lib/bbcoder.rb in bbcoder-0.1.5 vs lib/bbcoder.rb in bbcoder-0.1.6
- old
+ new
@@ -63,7 +63,15 @@
tag :youtube do
<<-EOS
<iframe width="560" height="349" src="http://www.youtube.com/embed/#{content}" frameborder="0" allowfullscreen></iframe>
EOS
end
+
+ tag :sub, :singular => true do
+ %(<sub>#{singular? ? meta : content}</sub>)
+ end
+
+ tag :sup, :singular => true do
+ %(<sup>#{singular? ? meta : content}</sup>)
+ end
end