fix footnotes so they don't break markdown syntax