@thi.ng/hiccup-markdown
Version:
Markdown parser & serializer from/to Hiccup format
20 lines • 681 B
TypeScript
export interface SerializeState {
indent: number;
sep: string;
id?: number;
pre?: boolean;
blockquote?: boolean;
}
/**
* Serializes given hiccup tree to Markdown. The optional provided context `ctx`
* arg can be used to provide arbitrary state to components/functions embedded
* in the tree. See [thi.ng/hiccup
* docs](https://docs.thi.ng/umbrella/hiccup/index.html#user-context-injection)
* for details.
*
* @param tree
* @param ctx
*/
export declare const serialize: (tree: any, ctx?: any) => string;
export declare const serializeElement: import("@thi.ng/defmulti").MultiFn3<any, any, SerializeState, string>;
//# sourceMappingURL=serialize.d.ts.map