add embed code to parsed_document