fix: add key to ReactMarkdown
4a56df51
1 file(s) · +1 −0
| 341 | 341 | {selectedPost.content ? ( |
|
| 342 | 342 | <div className="prose prose-gray dark:prose-invert max-w-none prose-headings:text-foreground prose-p:text-foreground prose-a:text-primary prose-strong:text-foreground prose-code:text-foreground prose-pre:bg-muted prose-blockquote:text-muted-foreground prose-li:text-foreground space-y-4"> |
|
| 343 | 343 | <ReactMarkdown |
|
| 344 | + | key={selectedPost.id} |
|
| 344 | 345 | remarkPlugins={[remarkGfm]} |
|
| 345 | 346 | rehypePlugins={[rehypeRaw, rehypeSanitize]} |
|
| 346 | 347 | components={markdownComponents} |