def footnote_item(self, key, text):
        back = (
            '<a href="#fnref-%s" rev="footnote">&#8617;</a>'
        ) % escape(key)
        text = text.rstrip()
        if text.endswith('</p>'):
            text = re.sub(r'<\/p>$', r'%s</p>' % back, text)
        else:
            text = '%s<p>%s</p>' % (text, back)
        html = '<li id="fn-%s">%s</li>\n' % (escape(key), text)
        return html
Rendering a footnote item.
dataset/ETHPy150Open neuroo/equip/examples/sample-test-program/test_module/mistune.py/Renderer.footnote_item