extract footnote handling from block parser