fix markdown formatting for footnotes