Skip to content

Commit

Permalink
Update for 0.9.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
jugglerchris committed Dec 27, 2023
1 parent d4af292 commit 55bf53e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ Possible log types:
- `[fixed]` for any bug fixes.
- `[security]` to invite users to upgrade in case of vulnerabilities.

### 0.9.1

- [fixed] Various documentation issues (thanks sgtatham)
- [changed] CSS color rules now work for elements other than span.

### 0.9.0

- [changed] `Config::add_css` now returns `Result` instead of panicking on
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "html2text"
version = "0.9.0"
version = "0.9.1"
authors = ["Chris Emerson <[email protected]>"]
description = "Render HTML as plain text."
repository = "https://github.com/jugglerchris/rust-html2text/"
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,11 @@ read keys from stdin.
When the `css` feature is enabled, some simple CSS handling is done.

* The contents of \<style\> elements are parsed and some colour rules are extracted
* Some simplified selector matching is done: currently `<span class="foo">` with
CSS rules similar to `.foo { color:#123456; }`. This will add `Coloured(...)` nodes
to the render tree when matching.
* Basic selector matching (including child and descendents, classes and element
types).
* CSS colors will add `Coloured(...)` nodes to the render tree.
* Rules with `display: none` will cause matching elements to be removed from the
render tree.

The CSS handling is expected to improve in future (PRs welcome), but not to a full-
blown browser style system, which would be overkill for terminal output.
Expand Down

0 comments on commit 55bf53e

Please sign in to comment.