class Kramdown::Parser::Kramdown

def parse_codeblock_fenced

Parse the fenced codeblock at the current location.
def parse_codeblock_fenced
  if @src.check(FENCED_CODEBLOCK_MATCH)
    @src.pos += @src.matched_size
    el = new_block_el(:codeblock, @src[3])
    lang = @src[2].to_s.strip
    el.attr['class'] = "language-#{lang}" unless lang.empty?
    @tree.children << el
    true
  else
    false
  end
end