class ThoughtTagger::ThoughtTag
Public Class Methods
new(tag_name, markup, tokens)
click to toggle source
Calls superclass method
# File lib/thought_tag.rb, line 4 def initialize(tag_name, markup, tokens) @markup = markup super end
Public Instance Methods
render(context)
click to toggle source
# File lib/thought_tag.rb, line 9 def render(context) site = context.registers[:site] converter = site.find_converter_instance(::Jekyll::Converters::Markdown) result = "<div class=\"alert alert-info\" role=\"alert\">#{converter.convert(@markup).strip}</div>" end