css_inline 0.20.1 → 0.20.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Cargo.lock +128 -151
- data/README.md +1 -1
- data/ext/css_inline/Cargo.lock +128 -151
- data/ext/css_inline/Cargo.toml +2 -2
- metadata +2 -2
data/README.md
CHANGED
|
@@ -71,7 +71,7 @@ puts inlined
|
|
|
71
71
|
|
|
72
72
|
Note that `css-inline` automatically adds missing `html` and `body` tags, so the output is a valid HTML document.
|
|
73
73
|
|
|
74
|
-
Alternatively, you can inline CSS into an HTML fragment
|
|
74
|
+
Alternatively, you can inline CSS into an HTML fragment. Structural tags (`<html>`, `<head>`, `<body>`) are stripped from the output; only their contents are preserved. Use `CSSInline.inline` if you need to keep the full document structure:
|
|
75
75
|
|
|
76
76
|
```ruby
|
|
77
77
|
require 'css_inline'
|