Adding footnote/endnote support