.bundle/ruby/2.0.0/gems/kramdown-1.4.1/lib/kramdown/parser/kramdown/footnote.rb
# Parse the foot note definition at the current location.
Parse the foot note definition at the current location.
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, ''))
        warning("Duplicate footnote name '#{@src[1]}' on line #{start_line_number} - overwriting") if @footnotes[@src[1]]
        (@footnotes[@src[1]] = {})[:content] = el
        @tree.children << Element.new(:eob, :footnote_def, nil, :location => start_line_number)
        true
      end
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 , '' ) ) warning ( "Duplicate footnote name '#{@src[1]}' on line #{start_line_number} - overwriting" ) if @footnotes [ @src [ 1 ] ] ( @footnotes [ @src [ 1 ] ] = { } ) [ :content ] = el @tree . children << Element . new ( :eob , :footnote_def , nil , :location => start_line_number ) true end
Parse the foot note definition at the current location.
Parse the foot note definition at the current location .