Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Override Markstream node renderers and add trusted custom tags across Vue, React, Svelte, and Angular using scoped or renderer-local mappings.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-14 | ✗→✓ | ▲ Improved | -1% | 0% |
| case-04 | ✗→✓ | ▲ Improved | -38% | 0% |
| case-01 | ✗→✓ | ▲ Improved | -31% | 0% |
| case-03 | ✗→✓ | ▲ Improved | -10% | 0% |
| case-05 | ✗→✓ | ▲ Improved | -53% | 0% |
Customize specific Markstream nodes or trusted custom tags without replacing the parser or leaking global renderer state. Read references/patterns.md first.
Use to replace built-ins such as image, link, code_block, mermaid, or inline_code; render trusted tags such as thinking; or scope overrides to one renderer or app. Use parser transforms only when token or AST reshaping is required.
Before changing dependencies or source files, inspect the existing package manager and project conventions, preview the intended edits, and obtain explicit user approval.
setCustomComponents(customId, mapping); Svelte and Angular can also pass renderer-local maps.streamingComponents for parser-backed nodes and htmlComponents for sanitized attributes plus children.tsximport MarkdownRender, { type NodeComponentProps, setCustomComponents, } from 'markstream-react' import 'markstream-react/index.css' function ThinkingNode({ node }: NodeComponentProps<any>) { return <details><summary>Thinking</summary>{node.content}</details> } setCustomComponents('assistant-panel', { thinking: ThinkingNode }) export function Answer({ markdown }: { markdown: string }) { return ( <MarkdownRender content={markdown} customId="assistant-panel" customHtmlTags={['thinking']} htmlPolicy="safe" /> ) }
Treat custom HTML-like tags as trusted input only. Keep safe HTML enabled and do not pass unsanitized attributes into host components.
Other measured skills in the registry, with their headline benchmark lift.