def _extract_inline_footnote_sub(self, match):
        text = match.group(1).strip()
        self.inline_footnote_id += 1
        # Ensure footnote text ends with a couple newlines (for some
        # block gamut matches).
        self.footnotes[str(self.inline_footnote_id)] = text + "\n\n"
        # Transform it into [^id] so that it can be processed as markdown footnote.
        return '[^%d]' % self.inline_footnote_id
dataset/ETHPy150Open an0/Letterpress/code/markdown2/lib/markdown2.py/Markdown._extract_inline_footnote_sub/original