lib/hemingway/latex_nodes.rb
def html(footnote_seed, time)
      paragraph_content = sequence.elements.map do |element|
        if element.respond_to?(:footnote_html)
          footnote_seed += 1
          element.html(footnote_seed, time)
        elsif element.respond_to?(:newline)
          element.newline.html
        else
          element.html
        end
      end.join

      Build.tag("p", paragraph_content)
    end
def html(footnote_seed, time)
      paragraph_content = sequence.elements.map do |element|
        if element.respond_to?(:footnote_html)
          footnote_seed += 1
          element.html(footnote_seed, time)
        elsif element.respond_to?(:newline)
          element.newline.html
        else
          element.html
        end
      end.join

      Build.tag("p", paragraph_content)
    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.