($, options = {})
| 5 | import preferMaxWidth from './preferMaxWidth' |
| 6 | |
| 7 | function 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 | |
| 22 | export default inline |
no test coverage detected