Add footnote support to markdown processing