Prevent line-breaking mid-word
Fixed a bug and improved the quality of the output markdown