Skip to content

Commit 8e38cc2

Browse files
committed
docs: Update the crate's docs
1 parent d8cc1ea commit 8e38cc2

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

src/lib.rs

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,7 @@
4848
//! }
4949
//! ```
5050
//!
51-
//! ### Features
52-
//!
53-
//! `css-inline` does minimum work by default:
54-
//!
55-
//! - No CSS transformation;
56-
//! - No "style" or "link" tags removal;
57-
//!
58-
//! It also loads external stylesheets via network or filesystem, but this behavior is configurable.
59-
//!
60-
//! ### Configuration
51+
//! ### Features & Configuration
6152
//!
6253
//! `css-inline` can be configured by using `InlineOptions` and `CSSInliner`:
6354
//!
@@ -84,9 +75,11 @@
8475
//! }
8576
//! ```
8677
//!
87-
//! - `remove_style_tags`. Remove "style" tags after inlining.
88-
//! - `base_url`. Base URL to resolve relative URLs
89-
//! - `load_remote_stylesheets`. Whether remote stylesheets should be loaded or not
78+
//! - `inline_style_tags`. Whether to inline CSS from "style" tags. Default: `true`
79+
//! - `remove_style_tags`. Remove "style" tags after inlining. Default: `false`
80+
//! - `base_url`. Base URL to resolve relative URLs. Default: `None`
81+
//! - `load_remote_stylesheets`. Whether remote stylesheets should be loaded or not. Default: `true`
82+
//! - `extra_css`. Additional CSS to inline. Default: `None`
9083
//!
9184
#![warn(
9285
clippy::doc_markdown,

0 commit comments

Comments
 (0)