I replaced all the footnotes with markdown notation footnotes (sadly github gist doesn't understand them), but I can't figure out the heading layout.