Provided function to validate buffer of reStructured Text