mirror of
https://github.com/lexmount/moli.git
synced 2026-11-14 00:08:12 +00:00
test(fetch): enforce exact CLI output at the owning layer
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user