test(fetch): enforce exact CLI output at the owning layer

This commit is contained in:
lanyue-llk
2026-10-28 03:43:27 +07:00
committed by KEVIN LIANG
parent 413bf13007
commit e1f0455675
3 changed files with 6 additions and 5 deletions
+3 -2
View File
@@ -72,8 +72,9 @@ Tables with `role="presentation"` or `role="none"` retain ordinary block expansi
in DOM order with blank lines between cells, even when structurally simple. Role
matching ignores ASCII case and surrounding HTML whitespace. Nested layout
wrappers expand into readable blocks. Tables with header cells, captions, explicit
data roles, header relationships or real cell spans retain data-table structure.
Complex data tables use content-only HTML: non-unit spans, multiple `thead` rows, rows wider than
data roles, header relationships or real cell spans retain their authored structure.
These tables use content-only HTML for non-unit spans, multiple `thead` rows,
rows wider than
an explicit header, or cells containing nested tables, lists, headings, quotes
or preformatted blocks. This retains header, cell and nested-table associations
that Markdown pipe tables cannot express. Inner simple tables can still produce
+2 -2
View File
@@ -33,8 +33,8 @@ case is skipped. A reference change that makes a difference obsolete also fails
the test. Separate converter tests cover GFM tables and strikethrough as Moli
extensions. Explicit table headers follow Turndown's GFM plugin; simple headerless
tables receive empty headings. Complex tables retain content-only HTML so merged
cells and nested tables keep their associations. Explicitly presentational tables
still expand into blocks.
cells and nested tables keep their associations. Presentational and layout-only containing
tables expand into blocks; their simple inner tables can use GFM.
## Findings tracked outside the reference corpus
+1 -1
View File
@@ -33,7 +33,7 @@ fn assert_markdown_dump(html: &str, markdown: &str, args: &[&str]) -> Result<()>
);
assert_eq!(
String::from_utf8(output.stdout)?,
format!("{}\n", markdown.trim_end_matches('\n'))
markdown.trim_end_matches('\n')
);
Ok(())
}