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 { createPlateEditor, Plate, PlateContent } from "platejs/react"import { BaseCodeBlockKit } from "@/components/editor/plugins/code-block-base-kit"const editor = createPlateEditor({ plugins: [...BaseCodeBlockKit], value: [ { type: "code_block", lang: "javascript", children: [ { type: "code_line", children: [{ text: "function greet(name) {" }] }, { type: "code_line", children: [{ text: " return `Hello, ${name}!`;" }] }, { type: "code_line", children: [{ text: "}" }] }, ], }, ],})export default function CodeBlockDemo() { return ( <div className="w-full max-w-lg"> <Plate editor={editor}> <PlateContent readOnly className="px-0 focus:outline-none" /> </Plate> </div> )}