parfit 0.2.0

Paragraph fit — a codebase-aware comment reflow tool that wraps prose with optimal-fit line breaking and leaves directives alone. Inspired by par.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! parfit — paragraph fit.
//!
//! Reflow prose in code comments to a target width using optimal-fit
//! line breaking. Lines that look like directives (`//go:generate`,
//! `// eslint-disable`, `#!/usr/bin/env bash`, `#[derive(…)]`, …)
//! pass through unchanged. Lines inside triple-backtick code fences
//! pass through unchanged. Words that look like URLs never split.

mod directives;
mod prefix;
mod reflow;

pub mod options;

pub use options::Options;
pub use reflow::reflow;