Don't process cross-references, only footnotes

Also added PHP unit test for new footnote processing.