Moved refmap from the top-level block node to the doc_parser.