Skip to content

Commit

Permalink
feat: improve document snippets output
Browse files Browse the repository at this point in the history
  • Loading branch information
romansharapov19 committed Sep 22, 2023
1 parent 708c29f commit 498cea8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/web-ui/components/document-snippets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
DialogTitle,
DialogTrigger,
} from '@/components/ui/dialog';
import Markdown from '@/components/markdown';

type DocumentSnippetsProps = {
source: ChatMessageSourceType;
Expand All @@ -33,7 +34,7 @@ export function DocumentSnippets({ source }: DocumentSnippetsProps) {
</DialogHeader>
<>
{source.snippets.map((snippet, index) => {
return <p key={index}>{snippet}</p>;
return <Markdown key={index} content={snippet}></Markdown>;
})}
</>
</DialogContent>
Expand Down

0 comments on commit 498cea8

Please sign in to comment.