@maizzle/framework
Version:
Maizzle is a framework that helps you quickly build HTML emails with Tailwind CSS.
25 lines (24 loc) • 819 B
TypeScript
import { ChildNode } from "domhandler";
//#region src/transformers/sixHex.d.ts
/**
* Convert 3-digit HEX color codes to 6-digit in `bgcolor` and `color`
* attributes, for better email client compatibility.
*
* @param html HTML string to transform.
* @returns The transformed HTML string.
*
* @example
* import { sixHex } from '@maizzle/framework'
*
* const out = sixHex('<font color="#abc">x</font>')
*/
declare function sixHex(html: string): string;
/**
* DOM-form of {@link sixHex} used by the internal transformer pipeline.
* Takes a parsed DOM, returns a parsed DOM — avoids redundant
* serialize/parse round-trips when chained with other transformers.
*/
declare function sixHexDom(dom: ChildNode[]): ChildNode[];
//#endregion
export { sixHex, sixHexDom };
//# sourceMappingURL=sixHex.d.ts.map