Skip to content

Commit b0726f1

Browse files
committed
Update README.md.
1 parent 85a5536 commit b0726f1

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,14 @@ Default: `{ EJS: { start: '<%', end: '%>' }, HBS: { start: '{{', end: '}}' } }`
181181

182182
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 = {...}`.
183183

184+
### Special markup
185+
186+
#### data-embed
187+
188+
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.
189+
190+
This can be used to embed email client support hacks that rely on css selectors into your email templates.
191+
184192
### cheerio options
185193

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

0 commit comments

Comments
 (0)