diff --git a/AGENTS.md b/AGENTS.md index d1edc3e8..d8a48016 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -157,10 +157,10 @@ project: changes from new major versions. This approach is critical for ensuring build stability and reproducibility. - **Prohibit unstable version specifiers.** The use of wildcard (`*`) or - open-ended inequality (`>=`) version requirements is strictly forbidden, as it - introduces unacceptable risk and unpredictability. Tilde requirements (`~`) - should only be used where a dependency must be locked to patch-level updates - for a specific, documented reason. + open-ended inequality (`>=`) version requirements is strictly forbidden, as + it introduces unacceptable risk and unpredictability. Tilde requirements + (`~`) should only be used where a dependency must be locked to patch-level + updates for a specific, documented reason. ### Error Handling diff --git a/src/html.rs b/src/html.rs index c3372881..2742d7b3 100644 --- a/src/html.rs +++ b/src/html.rs @@ -112,10 +112,10 @@ fn is_bold_tag(tag: &str) -> bool { /// Returns `true` if `handle` contains a `` or `` descendant. fn contains_strong(handle: &Handle) -> bool { - if let NodeData::Element { name, .. } = &handle.data - && is_bold_tag(name.local.as_ref()) - { - return true; + if let NodeData::Element { name, .. } = &handle.data { + if is_bold_tag(name.local.as_ref()) { + return true; + } } let children = handle.children.borrow(); children.iter().any(contains_strong) diff --git a/src/wrap.rs b/src/wrap.rs index 702478e8..91b9e0d3 100644 --- a/src/wrap.rs +++ b/src/wrap.rs @@ -16,7 +16,8 @@ mod tokenize; /// Re-export this so callers of [`crate::textproc`] can implement custom /// transformations without depending on internal modules. pub use tokenize::Token; -/// Tokenize a block of Markdown while preserving fence context. +/// Convenience re-export of [`tokenize::tokenize_markdown`]. +#[doc(inline)] pub use tokenize::tokenize_markdown; static FENCE_RE: std::sync::LazyLock = diff --git a/tests/common/mod.rs b/tests/common/mod.rs index 64b5fc38..ff4729e8 100644 --- a/tests/common/mod.rs +++ b/tests/common/mod.rs @@ -19,7 +19,7 @@ macro_rules! lines_vec { /// /// Example: /// ``` -/// let input: Vec = include_lines!("data/bold_header_input.txt"); +/// let input: Vec = include_lines!("data/bold_header_input.txt"); /// ``` #[expect(unused_macros, reason = "macros are optional helpers across modules")] macro_rules! include_lines {