-
Notifications
You must be signed in to change notification settings - Fork 254
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use react markdown component and sb-prose styles for AI chat modal (#380
- Loading branch information
1 parent
d0bdefc
commit f3a2d3a
Showing
5 changed files
with
16 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import MarkdownReact from 'marked-react'; | ||
import { cn } from '@srcbook/components'; | ||
|
||
export default function Markdown(props: { source: string; className?: string }) { | ||
return ( | ||
<div className={cn('sb-prose', props.className)}> | ||
<MarkdownReact gfm>{props.source}</MarkdownReact> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.