-
Notifications
You must be signed in to change notification settings - Fork 197
Closed
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation
Description
i have this bug where rehype-raw doesn't seem to work for custom components unless i explicitly declare it else it will ignore it and wont show it. can you please check this as well, thanks.
components={
{
chunkref: ({
id,
index,
node,
...rest
}: {node?: unknown} & ChunkRefProps) => (
<ChunkRef
id={id}
index={index}
messageId={messageId}
onOpenSource={onOpenSource}
{...rest}
/>
),
} as React.ComponentProps<typeof Response>['components']
}
rehypePlugins={[
{
plugins: [rehypeRaw, rehypeKatex, harden],
},
]}
Originally posted by @corolair-hazem in #331 (comment)
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation