Postprocess markdown generated from a pdf to clean up newlines, spaces, etc.

Used in [marker](https://github.com/VikParuchuri/marker).
{}
transformers pytorch t5 token-classification autotrain_compatible endpoints_compatible has_space text-generation-inference region:us