.bundle/ruby/2.0.0/gems/kramdown-1.4.1/lib/kramdown/parser/kramdown/footnote.rb
# Parse the footnote marker at the current location.
Parse the footnote marker at the current location.
Parse the footnote marker at the current location .
def parse_footnote_marker
        start_line_number = @src.current_line_number
        @src.pos += @src.matched_size
        fn_def = @footnotes[@src[1]]
        if fn_def
          fn_def[:marker] ||= []
          fn_def[:marker].push(Element.new(:footnote, fn_def[:content], nil, :name => @src[1], :location => start_line_number))
          fn_def[:stack] = [@stack.map {|s| s.first}, @tree, fn_def[:marker]].flatten.compact
          @tree.children << fn_def[:marker].last
        else
          warning("Footnote definition for '#{@src[1]}' not found on line #{start_line_number}")
          add_text(@src.matched)
        end
      end
def parse_footnote_marker start_line_number = @src . current_line_number @src . pos += @src . matched_size fn_def = @footnotes [ @src [ 1 ] ] if fn_def fn_def [ :marker ] ||= [ ] fn_def [ :marker ] . push ( Element . new ( :footnote , fn_def [ :content ] , nil , :name => @src [ 1 ] , :location => start_line_number ) ) fn_def [ :stack ] = [ @stack . map { | s | s . first } , @tree , fn_def [ :marker ] ] . flatten . compact @tree . children << fn_def [ :marker ] . last else warning ( "Footnote definition for '#{@src[1]}' not found on line #{start_line_number}" ) add_text ( @src . matched ) end end
Parse the footnote marker at the current location.
Parse the footnote marker at the current location .