/** * Generates the Toast UI Editor HTML template for document editing. * * Features: * - WYSIWYG and Markdown source modes * - Dark theme matching Vellum design * - Real-time word count * - Auto-save via Vellum JS bridge * - Code syntax highlighting * - Tables, task lists, and rich formatting */ export function generateEditorHTML( title: string, initialContent: string, ): string { return ` ${escapeHtml(title)}
Ready
`.trim(); } function escapeHtml(str: string): string { return str .replace(/&/g, "&") .replace(//g, ">") .replace(/"/g, """) .replace(/'/g, "'"); }