Sha256: d297eba496608ac780b95f63ec6d4d956ef713b5aabf821e7949c29c2ba5f783
Contents?: true
Size: 622 Bytes
Versions: 30
Compression:
Stored size: 622 Bytes
Contents
module Alula class BlockquoteTag < Block def render(context) quote = super tag = "<blockquote>" tag += quote if @options["author"] or @source tag += "<div class=\"source\">" tag += " — " if @options["author"] and @source.empty? tag += "<strong>#{@options["author"]}</strong>" if @options["author"] tag += " — " if @options["author"] and !@source.empty? tag += "<cite>#{@source}</cite>" if @source tag += "</div>" end tag += "</blockquote>" end end end Alula::Tag.register :blockquote, Alula::BlockquoteTag
Version data entries
30 entries across 30 versions & 1 rubygems