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/core/react';import { CodeBlockKit } from '@/components/editor/plugins/code-block-kit';export default function CodeBlockDemo() { const editor = usePlateEditor({ plugins: [...CodeBlockKit], value: [ { type: 'p', children: [{ text: 'Install the dependencies first:' }], }, { type: 'code_block', lang: 'tsx', children: [ { type: 'code_line', children: [{ text: 'const message = "Hello, world";' }], }, { type: 'code_line', children: [{ text: 'console.log(message);' }], }, ], }, ], }); return ( <div className="w-full max-w-lg"> <Plate editor={editor}> <PlateContent className="min-h-40 w-full rounded-md border p-4 text-sm outline-none" /> </Plate> </div> );}