Postprocess markdown generated from a pdf to clean up newlines, spaces, etc. Used in [marker](https://github.com/VikParuchuri/marker).