Edit content on the left, see live output in all four formats on the right. Use the tabs to switch between JSON, HTML, Markdown, and Plain Text.
import { useEditorAPI } from "@mina-rich-editor/core";
import { serializeToSemanticHtml } from "@mina-rich-editor/core/utils";
import { serializeToMarkdown } from "@mina-rich-editor/core/utils";
// Inside EditorProvider context:
const api = useEditorAPI();
const container = api.getContainer();
// Export in different formats
const json = JSON.stringify(container, null, 2);
const html = serializeToSemanticHtml(container);
const markdown = serializeToMarkdown(container);