markdown-unwrap

Unwrap hard-wrapped Markdown and Quarto files into sentence-per-line text.

14|2|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/christopherkenny/skills --skill markdown-unwrap
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: markdown-unwrap
Source: https://github.com/christopherkenny/skills/tree/main/skills/markdown-unwrap
Command: npx skills add https://github.com/christopherkenny/skills --skill markdown-unwrap

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill rewrites hard-wrapped markdown and Quarto files so that each sentence ends with a newline, enabling clean reflow and easier diffing.

Core Features & Use Cases

  • Unwraps wrapped paragraphs by placing each sentence on its own line while preserving headings, fenced code blocks, block quotes, lists, and YAML front matter.
  • Improves readability, editing, proofreading, and translation workflows by producing predictable line breaks across editors.
  • Use Case: Prepare large markdown docs for version control diffs or consistent review.

Quick Start

Provide the path to the input Markdown or Quarto file and, optionally, a path for the output; the tool overwrites in place by default.

Frequently Asked Questions about markdown-unwrap

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I unwrap hard-wrapped markdown into sentence-per-line text?

To unwrap hard-wrapped markdown into sentence-per-line text, provide the input file path and an optional output path. The tool processes paragraphs while preserving headings, lists, and code blocks, overwriting in place by default.

What does unwrapping markdown do for version control diffs?

Unwrapping markdown for version control diffs places each sentence on its own line. This produces predictable line breaks across editors, making changes easier to track and review during document updates.

Does the markdown unwrapping process preserve YAML front matter and code blocks?

Yes, the markdown unwrapping process preserves YAML front matter, fenced code blocks, block quotes, headings, and lists. A line-by-line buffering algorithm identifies and skips these structural elements during paragraph reflow.

Can I use this to prepare Quarto documents for translation workflows?

Yes, you can use this to prepare Quarto documents for translation workflows. The tool supports Quarto files and generates predictable sentence boundaries, improving readability and consistency across editing and proofreading stages.

What is the best way to clean up line breaks in markdown documents?

The best way to clean up line breaks in markdown documents is to unwrap paragraphs so each sentence ends with a newline. This enables clean reflow and easier diffing without altering front matter or code blocks.