Superinterface
Product
Pricing
Examples
Docs
Blog
GitHub
Discord
Book a demo
Sign in
Menu
Getting started
AI Provider Setup
FAQ
Assistants
Create assistant
Functions
Interfaces
Create interface
Interaction Modes
AI Builder
Publish interface
Components
Annotations
Concepts
Why Superinterface
How it works
Tasks
Overview
API reference
React
Installation
Components
SuperinterfaceProvider
Thread
MarkdownProvider
Suggestions
AssistantProvider
ComponentsProvider
Avatar
SourceAnnotation
Hooks
Contexts
Utils
Server
JavaScript
REST
MarkdownProvider
Provide custom markdown rendering for thread messages.
app.tsx
import
{
MarkdownProvider
,
Thread
}
from
'
@superinterface/react
'
const
components
=
{
h1
:
(
props
)
=
>
<
h1
className
=
"
special-h1
"
>
{
props
.
children
}
</
h1
>
,
}
export
const
App
=
(
)
=
>
(
<
MarkdownProvider
components
=
{
components
}
>
<
Thread
/>
</
MarkdownProvider
>
)
Props
Prop
Type
Required
Description
components
Record<string, React.ComponentType>
Yes
Markdown element overrides
children
React.ReactNode
Yes
Wrapped components
Status
Changelog
Terms of service
Privacy policy