Tags the document as proposed, with type overrides by block id, returning a new document. title defaults to the first H1's text, else the first heading's.