From b84582deae1076ff8f723bf6921600139ed34a6a Mon Sep 17 00:00:00 2001 From: Leynos Date: Thu, 31 Jul 2025 12:29:40 +0100 Subject: [PATCH 1/2] Add module description for wrap utilities --- src/wrap.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wrap.rs b/src/wrap.rs index 0eb8e45a..93ea5ebb 100644 --- a/src/wrap.rs +++ b/src/wrap.rs @@ -1,8 +1,8 @@ -//! Text wrapping utilities respecting inline code and prefixes. +//! Utilities for wrapping Markdown lines. //! -//! Unicode width handling follows the "Unicode Width Handling" section in -//! `docs/architecture.md` and uses the `unicode-width` crate for accurate -//! display calculations. +//! These helpers reflow paragraphs and list items while preserving inline code +//! spans, fenced code blocks and other prefixes. Width calculations rely on the +//! `unicode-width` crate as described in `docs/architecture.md#unicode-width-handling`. use regex::Regex; From 41ba1bbbce96c2038033ca2045ed8f66207a53a5 Mon Sep 17 00:00:00 2001 From: Leynos Date: Thu, 31 Jul 2025 16:30:35 +0100 Subject: [PATCH 2/2] Clarify wrap module docs --- src/wrap.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/wrap.rs b/src/wrap.rs index 93ea5ebb..0e8e7bbe 100644 --- a/src/wrap.rs +++ b/src/wrap.rs @@ -1,8 +1,9 @@ //! Utilities for wrapping Markdown lines. //! //! These helpers reflow paragraphs and list items while preserving inline code -//! spans, fenced code blocks and other prefixes. Width calculations rely on the -//! `unicode-width` crate as described in `docs/architecture.md#unicode-width-handling`. +//! spans, fenced code blocks, and other prefixes. Width calculations rely on +//! `UnicodeWidthStr::width` from the `unicode-width` crate as described in +//! `docs/architecture.md#unicode-width-handling`. use regex::Regex;