79492205

Date: 2025-03-07 11:50:51
Score: 1
Natty:
Report link

Use the remarkBreaks plugin from remark-breaks:

npm install remark-breaks

import ReactMarkdown from "react-markdown";
import remarkBreaks from "remark-breaks";

<div className="prose prose-gray mt-4">
  <ReactMarkdown remarkPlugins={[remarkBreaks]}>
    {product.content}
  </ReactMarkdown>
</div>

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Nihara Mayurawasala