MCPcopy
hub / github.com/SparkPost/heml / inline

Function inline

packages/heml-inline/src/index.js:7–20  ·  view source on GitHub ↗
($, options = {})

Source from the content-addressed store, hash-verified

5import preferMaxWidth from './preferMaxWidth'
6
7function inline ($, options = {}) {
8 const { juice: juiceOptions = {} } = options
9
10 juice.juiceDocument($, {
11 ...juiceOptions
12 })
13
14 inlineMargins($)
15 preferMaxWidth($, '[class$="__ie"]')
16 fixWidthsFor($, 'img, .block__table__ie, .column')
17 removeProcessingIds($)
18
19 return $
20}
21
22export default inline

Callers 1

hemlFunction · 0.85

Calls 4

inlineMarginsFunction · 0.85
preferMaxWidthFunction · 0.85
fixWidthsForFunction · 0.85
removeProcessingIdsFunction · 0.85

Tested by

no test coverage detected