Commit Graph
19 Commits
Author SHA1 Message Date
ldm0 dd7cd1c1e1 fix(html2md): preserve code boundaries across empty inline events 2026-09-21 03:32:33 +08:00
kevin 3560c85f4b Use CommonMark punctuation class and retain compatibility scenarios 2026-09-20 20:50:03 +08:00
kevin 8361929c4c Revert "Separate adjacent Markdown code spans"
This reverts commit fcc1c20576.
2026-09-20 20:50:03 +08:00
kevin 01910a6f14 Separate adjacent Markdown code spans 2026-09-20 20:50:03 +08:00
kevin 9848a96c1c Revert "Preserve literal characters in adjacent code HTML fallback"
This reverts commit 9359650240.
2026-09-20 20:50:03 +08:00
kevin 43b8064a49 Preserve literal characters in adjacent code HTML fallback 2026-09-20 20:50:03 +08:00
kevin ead6facb87 Preserve empty pre blocks and adjacent code text 2026-09-20 20:50:03 +08:00
kevin 2c0fd9a8c0 Preserve preformatted boundaries and empty code separation 2026-09-20 20:50:03 +08:00
kevin 107c1536cb Retain image references without inferring content from pixels 2026-09-20 20:50:03 +08:00
kevin 4052110cff Preserve ambiguous embedded images and picture alternatives 2026-09-20 20:50:03 +08:00
kevin 8104206412 Preserve block boundaries inside preformatted content 2026-09-20 20:50:03 +08:00
kevin c496e37cb4 Preserve content semantics in HTML to Markdown conversion 2026-09-20 20:50:03 +08:00
kevin 91e9b568bd fix(html2md): detect empty inline SVGs structurally 2026-09-20 20:50:03 +08:00
kevin 7985fcb7bc fix(fetch): preserve details and discard empty SVG placeholders 2026-09-20 20:50:03 +08:00
ldm0 3d664bf3b5 fix(markdown): expand presentational tables into blocks
Honor presentation and none table roles with ASCII case-insensitive matching and HTML whitespace trimming. Preserve captions, cell content, and independent conversion of nested data tables.

Validation: cargo fmt --all; cargo clippy --workspace --all-targets --all-features -- -D warnings; cargo nextest run --no-fail-fast (18,162 passed, 13 skipped).
2026-09-17 02:19:47 +08:00
ldm0 a14ec9788c refactor(markdown): unify output ownership and table state
Use concrete Output and Cow parameters with conversions at call sites. Merge text fragments and keep table cell lifecycle and complexity checks inside Table.

Validation: cargo fmt --all; cargo clippy --workspace --all-targets --all-features -- -D warnings; cargo nextest run --no-fail-fast (18,114 passed, 13 skipped).
2026-09-17 01:16:06 +08:00
ldm0 0e521aa8a3 feat(markdown): render simple HTML tables as GFM
Synthesize empty headings for simple headerless tables and keep complex tables readable as blocks. Use owned output fragments to avoid repeated copying through nested fallback tables.

Cover escaping, alignment, layouts, CLI output and linear copy growth. Validated with cargo fmt, workspace Clippy, and 18,114 passing nextest tests (13 skipped).
2026-09-17 01:16:06 +08:00
ldm0 ae10292ea4 fix(markdown): preserve inline code breaks and nested emphasis 2026-09-16 16:07:15 +08:00
ldm0 61dbf7ea3e feat(markdown): introduce moli-html2md 2026-09-16 16:07:15 +08:00