allow a function to be passed as a second parameter to filter comments, e.g. to not create docs for `@api private` comments.