Add footnote support

Closes #191