pass the document into parse_filter.