@builder.io/mitosis
Version:
Write components once, run everywhere. Compiles to Vue, React, Solid, and Liquid. Import code from Figma and Builder.io
21 lines (20 loc) • 784 B
TypeScript
import { ToMarkoOptions } from '../../generators/marko/types';
import { TranspilerGenerator } from '../../types/transpiler';
export declare const componentToMarko: TranspilerGenerator<ToMarkoOptions>;
/**
* Convert marko expressions to valid html
*
* <div on-click=(() => doSomething())> -> <div on-click="() => doSomething()">
*/
export declare function preprocessHtml(htmlString: string): string;
/**
* Convert HTML back to marko expressions
*
* <div on-click="() => doSomething()"> -> <div on-click=(() => doSomething())>
*/
export declare function postprocessHtml(htmlString: string): string;
/**
* Format Marko HTML using the built-in HTML parser for prettier,
* given issues with Marko's plugin
*/
export declare function markoFormatHtml(htmlString: string): string;