Some Markdown viewers show each line break, so text that is wrapped by hand breaks in the middle of sentences. check reports wrapped text, and fix joins it. Teams that read raw Markdown can turn this off with "proseWrap": "preserve".
How it works
src/wrap.js unwrapProse joins a line to the line before it only when Markdown already joins them. So the rendered page does not change.
It does not join lines in frontmatter, code, tables, HTML, headings, link definitions, or after a hard break. When it is not sure, it leaves the line.
Tasks
- Join wrapped paragraphs, list items, and quotes
- Report wrapped text in
check - Wrap prose at a fixed width (
"proseWrap": "always")