UNPKG

caniemail

Version:

HTML and CSS Feature Support for Email Clients from caniemail.com

23 lines 598 B
import { inspect } from 'node:util'; import rehypeParse from 'rehype-parse'; import { unified } from 'unified'; (async () => { const html = ` <!doctype html> <html> <head> <style> .container { filter: blur(50%); } </style> </head> <body> <div class='container' style='background-color: orange'></div> </body> </html> `; const ast = unified().use(rehypeParse, { fragment: false, verbose: true }).parse(html); console.log(inspect(ast, { depth: 20 })); })(); //# sourceMappingURL=rehype.js.map