Pipeline
- Docsusage, props, keywords
- Demosrc/demo.tsx
- Buildshadcn add → vite
- Capturelight, dark, motion
- IndexBM25 + vectors
Public log. Prompts, raw model errors and costs stay on the admin side.
Log
Demo source
src/demo.tsx · from an earlier run
'use client';import { Plate, PlateContent, usePlateEditor } from 'platejs/react';import { MathKit } from '@/components/editor/plugins/math-kit';export default function MathKitDemo() { const editor = usePlateEditor({ plugins: [...MathKit], value: [ { type: 'p', children: [{ text: 'The Pythagorean theorem can be written inline as ' }, { type: 'inline_equation', texExpression: 'x^2 + y^2 = z^2', children: [{ text: '' }] }, { text: '.' }], }, { type: 'equation', texExpression: 'E = mc^2', children: [{ text: '' }], }, { type: 'p', children: [{ text: 'Type $ or $$ to insert a new equation.' }], }, ], }); return ( <Plate editor={editor}> <PlateContent className="w-full max-w-lg rounded-md border p-4 text-sm" placeholder="Type here..." /> </Plate> );}