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
import { EquationElement } from "@/components/ui/equation-node";import { createPlatePlugin, Plate, PlateContent, usePlateEditor } from "platejs/react";const EquationPlugin = createPlatePlugin({ key: "equation", node: { isElement: true, isVoid: true }, render: { node: EquationElement },});export default function EquationDemo() { const editor = usePlateEditor({ plugins: [EquationPlugin], value: [ { type: "p", children: [{ text: "The quadratic formula is:" }] }, { type: "equation", texExpression: "x = \\frac{-b \\pm \\sqrt{b^2 - 4ac}}{2a}", children: [{ text: "" }] }, ], }); return ( <Plate editor={editor}> <PlateContent className="w-full max-w-lg rounded-md border p-4 text-sm focus-visible:outline-none" /> </Plate> );}