Skip to content

Commit 95d81c0

Browse files
committed
Update README.md.
1 parent 624485e commit 95d81c0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,14 @@ Default: `{ EJS: { start: '<%', end: '%>' }, HBS: { start: '{{', end: '}}' } }`
203203

204204
An object where each value has a `start` and `end` to specify fenced code blocks that should be ignored during parsing and inlining. For example, Handlebars (hbs) templates are `HBS: {start: '{{', end: '}}'}`. `codeBlocks` can fix problems where otherwise inline-css might interpret code like `<=` as HTML, when it is meant to be template language code. Note that `codeBlocks` is a dictionary which can contain many different code blocks, so don't do `codeBlocks: {...}` do `codeBlocks.myBlock = {...}`.
205205

206+
### Special markup
207+
208+
#### data-embed
209+
210+
When a data-embed attribute is present on a <style></style> tag, inline-css will not inline the styles and will not remove the <style></style> tags.
211+
212+
This can be used to embed email client support hacks that rely on css selectors into your email templates.
213+
206214
### cheerio options
207215

208216
Options to passed to [cheerio](https://github.com/cheeriojs/cheerio).

0 commit comments

Comments
 (0)