# File doc/plugins/alert_block.rb, line 5 def initialize(tag_name, markup, tokens) @alert_type = tag_name.split('_').first super tag_name, markup + ' alert alert-' + @alert_type, tokens end
# File doc/plugins/alert_block.rb, line 18 def render_content(context, content) super context, "**#{HEADER[@alert_type]}** \n" + content end
# File doc/plugins/alert_block.rb, line 10 def tag 'div' end