Skip to content

Commit 236452a

Browse files
committed
chore: bump
1 parent b8b6af2 commit 236452a

5 files changed

Lines changed: 16 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## [0.2.5] - 2026-05-25
2+
3+
### Fixed
4+
- Nested table cells no longer inherit `text-align` from a parent `<td align>`; default master.css now resets table alignment to match browsers
5+
16
## [0.2.4] - 2026-03-12
27

38
### Added

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

litehtml-sys/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "litehtml-sys"
3-
version = "0.2.4"
3+
version = "0.2.5"
44
edition = "2021"
55
license = "MIT AND BSD-3-Clause AND Apache-2.0"
66
authors = ["Franz Geffke <mail@gofranz.com>"]

litehtml-sys/csrc/litehtml_c.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1188,7 +1188,13 @@ lh_document_t* lh_document_create_from_string(
11881188

11891189
auto* container = new CDocumentContainer(vtable, user_data);
11901190

1191-
std::string master = master_css ? master_css : litehtml::master_css;
1191+
// litehtml's built-in master.css omits the HTML spec's `table` text-align
1192+
// reset, so `<td align>` (mapped to an inherited text-align) leaks into
1193+
// nested tables. Append it so default rendering matches browsers.
1194+
// litehtml has no `start`; `left` is its LTR equivalent.
1195+
std::string master = master_css
1196+
? master_css
1197+
: (std::string(litehtml::master_css) + "\ntable { text-align: left; }\n");
11921198
std::string user = user_styles ? user_styles : "";
11931199

11941200
litehtml::document::ptr doc =

litehtml/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "litehtml"
3-
version = "0.2.4"
3+
version = "0.2.5"
44
edition = "2021"
55
license = "MIT"
66
authors = ["Franz Geffke <mail@gofranz.com>"]

0 commit comments

Comments
 (0)