You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ into:
40
40
- Resolves external stylesheets (including local files)
41
41
- Works on Linux, Windows, and macOS
42
42
- Supports HTML5 & CSS3
43
-
- Bindings for [Python](https://github.com/Stranger6667/css-inline/tree/master/bindings/python), [Ruby](https://github.com/Stranger6667/css-inline/tree/master/bindings/ruby), [WebAssembly](https://github.com/Stranger6667/css-inline/tree/master/bindings/wasm) and [C](https://github.com/Stranger6667/css-inline/tree/master/bindings/c)
43
+
- Bindings for [Python](https://github.com/Stranger6667/css-inline/tree/master/bindings/python), [Ruby](https://github.com/Stranger6667/css-inline/tree/master/bindings/ruby), [JavaScript](https://github.com/Stranger6667/css-inline/tree/master/bindings/javascript), [C](https://github.com/Stranger6667/css-inline/tree/master/bindings/c), and [WebAssembly](https://github.com/Stranger6667/css-inline/tree/master/bindings/javascript) module to run in browsers.
-`inline_style_tags`. Specifies whether to inline CSS from "style" tags. Default: `true`
76
-
-`keep_style_tags`. Specifies whether to keep "style" tags after inlining. Default: `false`
77
-
-`keep_link_tags`. Specifies whether to keep "link" tags after inlining. Default: `false`
78
-
-`base_url`. The base URL used to resolve relative URLs. If you'd like to load stylesheets from your filesystem, use the `file://` scheme. Default: `null`
79
-
-`load_remote_stylesheets`. Specifies whether remote stylesheets should be loaded. Default: `true`
80
-
-`extra_css`. Extra CSS to be inlined. Default: `null`
81
-
-`preallocate_node_capacity`. **Advanced**. Preallocates capacity for HTML nodes during parsing. This can improve performance when you have an estimate of the number of nodes in your HTML document. Default: `32`
75
+
-`inlineStyleTags`. Specifies whether to inline CSS from "style" tags. Default: `true`
76
+
-`keepStyleTags`. Specifies whether to keep "style" tags after inlining. Default: `false`
77
+
-`keepLinkTags`. Specifies whether to keep "link" tags after inlining. Default: `false`
78
+
-`baseUrl`. The base URL used to resolve relative URLs. If you'd like to load stylesheets from your filesystem, use the `file://` scheme. Default: `null`
79
+
-`loadRemoteStylesheets`. Specifies whether remote stylesheets should be loaded. Default: `true`
80
+
-`extraCss`. Extra CSS to be inlined. Default: `null`
81
+
-`preallocateNodeCapacity`. **Advanced**. Preallocates capacity for HTML nodes during parsing. This can improve performance when you have an estimate of the number of nodes in your HTML document. Default: `32`
82
82
83
83
You can also skip CSS inlining for an HTML tag by adding the `data-css-inline="ignore"` attribute to it:
84
84
@@ -105,6 +105,29 @@ The `data-css-inline="ignore"` attribute also allows you to skip `link` and `sty
105
105
</body>
106
106
```
107
107
108
+
## WebAssembly
109
+
110
+
`css-inline` also ships a WebAssembly module built with `wasm-bindgen` to run in browsers.
0 commit comments