Revert "Improve wrapping for tex and markdown"

This reverts commit 87a9df9d23fdcf34a34b8a49b631fcb15f32c093.