Initial code spike; includes markup parsing and reference parsing