def footnote_html(footnote_seed, time)
      footnote_content = sequence.elements.reduce([]) do |memo, element|
        if element.respond_to?(:footnote_html)
          footnote_seed += 1
          memo + [element.footnote_html(footnote_seed, time)]
        else
          memo
        end
      end
    end
def footnote_html(footnote_seed, time)
      footnote_content = sequence.elements.reduce([]) do |memo, element|
        if element.respond_to?(:footnote_html)
          footnote_seed += 1
          memo + [element.footnote_html(footnote_seed, time)]
        else
          memo
        end
      end
    end
I'm passing in a time variable here to make links unique. You see,
 if you parse many of these entries on a single HTML page you'll end up
 with multiple #footnote1 divs. To make them unique, we'll pass down
 a time variable from above to seed them.