class Jekyll::InlineHighlightBlock

Public Instance Methods

add_code_tag(code) click to toggle source
# File lib/jekyll_inline_highlight.rb, line 13
def add_code_tag(code)
        code_attributes = [
                "class=\"highlight language-#{@lang.to_s.gsub('+', '-')}\"",
                "data-lang=\"#{@lang.to_s}\""
        ].join(" ")
        "<code #{code_attributes}>#{code.chomp.strip}</code>"
end
render(context) click to toggle source
Calls superclass method
# File lib/jekyll_inline_highlight.rb, line 21
def render(context)
        super.strip
end