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 { SearchHighlightLeaf } from '@/components/ui/search-highlight-node';const editor = createPlateEditor({ components: { search_highlight: SearchHighlightLeaf }, value: [ { type: 'p', children: [ { text: 'Search results for ' }, { text: 'highlight', search_highlight: true }, { text: ' in a long document appear here.' }, ], }, ],});export default function SearchHighlightDemo() { return ( <Plate editor={editor}> <PlateContent readOnly className='w-full max-w-md text-sm leading-relaxed' /> </Plate> );}