class Kramdown::Parser::Kramdown

def parse_footnote_definition

Parse the foot note definition at the current location.
def parse_footnote_definition
  start_line_number = @src.current_line_number
  @src.pos += @src.matched_size
  el = Element.new(:footnote_def, nil, nil, location: start_line_number)
  parse_blocks(el, @src[2].gsub(INDENT, ''))
  if @footnotes[@src[1]]
    warning("Duplicate footnote name '#{@src[1]}' on line #{start_line_number} - overwriting")
  end
  @tree.children << new_block_el(:eob, :footnote_def)
  (@footnotes[@src[1]] = {})[:content] = el
  @footnotes[@src[1]][:eob] = @tree.children.last
  true
end