Skip to content

Commit

Permalink
thoughts list \n to br
Browse files Browse the repository at this point in the history
  • Loading branch information
isidzukuri committed Dec 24, 2024
1 parent 70313f6 commit 3e84dca
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/pages/components/Thoughts/List.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ export default function ThoughtsList({items}) {
// items.slice().reverse().forEach((item) => {
items.reduceRight((_, item) => {
rows.push(
<div key={item.id}>
{item.content}
</div>
<div key={item.id} dangerouslySetInnerHTML={{ __html: item.content.replace(/\n/g, "<br />")}} />
);
}, 0);

Expand Down

0 comments on commit 3e84dca

Please sign in to comment.