Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 4 additions & 4 deletions src/html.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ fn is_bold_tag(tag: &str) -> bool {

/// Returns `true` if `handle` contains a `<b>` or `<strong>` 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)
Expand Down
3 changes: 2 additions & 1 deletion src/wrap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Regex> =
Expand Down
2 changes: 1 addition & 1 deletion tests/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
}

/// Expands to a `Vec<String>` with one element per line of the file.
///

Check warning on line 19 in tests/common/mod.rs

View workflow job for this annotation

GitHub Actions / build-test

Diff in /home/runner/work/mdtablefix/mdtablefix/tests/prelude/../common/mod.rs

Check warning on line 19 in tests/common/mod.rs

View workflow job for this annotation

GitHub Actions / build-test

Diff in /home/runner/work/mdtablefix/mdtablefix/tests/prelude/../common/mod.rs

Check warning on line 19 in tests/common/mod.rs

View workflow job for this annotation

GitHub Actions / build-test

Diff in /home/runner/work/mdtablefix/mdtablefix/tests/prelude/../common/mod.rs

Check warning on line 19 in tests/common/mod.rs

View workflow job for this annotation

GitHub Actions / build-test

Diff in /home/runner/work/mdtablefix/mdtablefix/tests/prelude/../common/mod.rs

Check warning on line 19 in tests/common/mod.rs

View workflow job for this annotation

GitHub Actions / build-test

Diff in /home/runner/work/mdtablefix/mdtablefix/tests/prelude/../common/mod.rs

Check warning on line 19 in tests/common/mod.rs

View workflow job for this annotation

GitHub Actions / build-test

Diff in /home/runner/work/mdtablefix/mdtablefix/tests/prelude/../common/mod.rs

Check warning on line 19 in tests/common/mod.rs

View workflow job for this annotation

GitHub Actions / build-test

Diff in /home/runner/work/mdtablefix/mdtablefix/tests/prelude/../common/mod.rs
/// Example:
/// ```
/// let input: Vec<String> = include_lines!("data/bold_header_input.txt");
/// let input: Vec<String> = include_lines!("data/bold_header_input.txt");
/// ```
#[expect(unused_macros, reason = "macros are optional helpers across modules")]
macro_rules! include_lines {
Expand Down
Loading