function cleanup ({ raw = false, position = false }, posts) {
  return posts.map(post => {
    if (post.data.mimeType === 'text/markdown') {
      if (!position) post.content = removePosition(post.content, true /* hard delete */)
      if (!raw) delete post.raw
    }
    return post
  })
}
cleanup
@param {Object} options
@param {Boolean} options.raw set to true to keep raw value in post object. Default to false.
@param {Boolean} options.position set to true to keep position information in content hast. Default to false.
@param {Array} posts