toHtml function converts a rich text value array into an HTML string.ts
import { toHtml } from "@arkyn/shared";
richTextValue (required)RichTextValuestringtypescript
import { toHtml } from "@arkyn/shared";const richText = [{type: "paragraph",children: [{ text: "Hello world", bold: true }],},];const html = toHtml(richText);console.log(html);// Output: "<p><strong>Hello world</strong></p>"