Exports
Your words leave cleanly
No lock-in: every document exports to open formats, including a self-contained HTML file whose interactive widgets still work.
Formats
HTML (standalone, with inlined styles — and live kit widgets), PDF (via the print path or jspdf), Markdown, and a slide deck (HTML/PDF) from present mode.
From the SDK
The same functions the app uses are public API.
export.ts
ts
import {blocksToHtml, blocksToMarkdown} from '@book.dev/ui';
const html = blocksToHtml(doc); // standalone, styles inlined
const md = blocksToMarkdown(doc);