fix(markdown): users couldn't include empty lines in the post content

This commit is contained in:
Tom (plebeius.eth)
2024-08-26 13:52:00 +02:00
parent 4092b68a74
commit 38790a2596
3 changed files with 13 additions and 4 deletions
+1 -1
View File
@@ -322,7 +322,7 @@ const PostFormTable = ({ closeForm, postCid }: { closeForm: () => void; postCid:
wrap='soft'
ref={textRef}
onChange={(e) => {
const content = e.target.value.replace(/\n/g, '\n\n');
const content = e.target.value;
isInPostView ? setPublishReplyOptions({ content }) : setSubmitStore({ content });
}}
/>