moved document structure parsing before xref expansion, so that anchors of headings are resolved
moved document structure parsing before xref expansion, so that anchors of headings are resolved

sunaku/ruby-vpi,sunaku/ruby-vpi