idk-plans

Prose unwrap

module

● 100% (2/2) · 1 deferred

Joins prose that is wrapped by hand into one line for each paragraph, so that viewers which show line breaks do not break sentences.

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")

In other views

Viewers

● 100% (2/2) · 1 deferred

Linked from