fixed mdroff pipeline, document processing in two stages