'>>> t = Textile()
>>> t.footnoteRef(\'foo[1] \') # doctest: +ELLIPSIS
\'foo<sup class="footnote"><a href="#fn...">1</a></sup> \''

def footnoteRef(self, text):

    return re.sub('\\b\\[([0-9]+)\\](\\s)?', self.footnoteID, text)
