Skip to content

Commit

Permalink
add remark-gfm
Browse files Browse the repository at this point in the history
  • Loading branch information
breeg554 committed Dec 10, 2024
1 parent 7b81ad8 commit 55e6d3b
Show file tree
Hide file tree
Showing 3 changed files with 204 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/web-remix/app/components/chat/ChatMarkdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Markdown from 'react-markdown';
import { Check, Copy } from 'lucide-react';
import mermaid from 'mermaid';
import rehypeRaw from 'rehype-raw';
import remarkGfm from 'remark-gfm';
import { z } from 'zod';

import { useCopyToClipboard } from '~/hooks/useCopyToClipboard';
Expand All @@ -23,7 +24,7 @@ export const ChatMarkdown: React.FC<ChatMarkdownProps> = ({
}) => {
return (
<Markdown
rehypePlugins={[rehypeRaw]}
rehypePlugins={[rehypeRaw, remarkGfm]}
{...options}
components={{
style: Span,
Expand Down
1 change: 1 addition & 0 deletions apps/web-remix/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
"react-tooltip": "^5.21.5",
"recharts": "2.13.0-alpha.4",
"rehype-raw": "7.0.0",
"remark-gfm": "^4.0.0",
"remix-utils": "7.6.0",
"sonner": "1.5.0",
"source-map-support": "^0.5.21",
Expand Down
201 changes: 201 additions & 0 deletions apps/web-remix/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 55e6d3b

Please sign in to comment.