Integrate markstream-solid in SolidJS 1.9 or SolidStart apps. Use for reactive TSX, SSR and hydration, Markdown streaming/restoration, emitted KaTeX/Mermaid workers, scoped components and translations, virtual timelines, or standalone component/API usage.
89%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Read the Solid guide for setup and the Solid component/API reference for exact contracts. The repository source contains workspace commands and validation records. Check the selected package's actual version and publication status before installing it.
solid-js / @solidjs/start in the host. TSX alone does not imply React. Require Solid 1.9 and the Solid compiler; SolidStart owns its compiler setup.katex, mermaid, stream-diffs, @terrastruct/d2 or @antv/infographic. Math also requires katex/dist/katex.min.css.markstream-solid/index.css, index.px.css or index.tailwind.css. Use .markstream-solid around standalone basic nodes.props.content in JSX/accessors. Avoid destructuring reactive props or treating signals as Vue refs.import MarkdownRender from 'markstream-solid'
import 'markstream-solid/index.css'
export function Message(props: { content: string, done: boolean }) {
return <MarkdownRender mode="chat" content={props.content} final={props.done} />
}content. Set final at completion and back to false before resuming. Replacement/empty content starts a new source session.mode="chat" for conversations and mode="docs" for documents. smoothStreaming controls pacing; fade controls animation. Solid and Vue 3 share the bounded text fade implementation.useSmoothMarkdownStream returns accessors (visible(), source(), final(), done(), snapshot()). Use one pacing owner per response.nodes for shared/preparsed ASTs; an empty array falls back to content.MarkstreamVirtualTimeline for mixed message windows. Markdown items use its built-in renderer; renderItem supplies the non-Markdown fallback. Use useMarkstreamVirtualAdapter when an existing outer virtualizer owns rows.worker: { format: 'es' }.markstream-solid/workers/katexRenderer.worker?worker and markstream-solid/workers/mermaidParser.worker?worker, then call setKaTeXWorker / setMermaidWorker once in the browser entry or onMount.setStreamDiffsWorkerPool.MarkstreamProvider for request-scoped translations/components.ComponentProps<typeof Component> from solid-js or the exported interfaces for exact TSX props.customComponents, a MarkstreamProvider, or scoped setCustomComponents(id, mapping) for overrides. Mark block-level overrides with withMarkstreamComponentDisplay.ReferenceNode forwards click/enter/leave with (event, id, messageId, threadId).MathBlockNode.cacheScope namespaces the renderer-owned pending-height cache with indexKey; it is not a global KaTeX macro/HTML-cache namespace.Run the host's build and typecheck. In this repository use pnpm test:solid, pnpm test:smoke:solid, pnpm test:smoke:solid-workers, pnpm test:e2e:solid-playground and pnpm play:solid:seo. Verify worker consumption through packed subpaths, streaming/final/full restore, user scroll detachment, and SSR/hydration where applicable.
Simon-He95/markstream-vue
e16b6f2
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.