mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
feat(post form): replace single return with double return on submit, because markdown is mandatory on plebbit, but a user from 4chan won't know that
This commit is contained in:
@@ -183,7 +183,8 @@ const PostFormTable = ({ closeForm }: { closeForm: () => void }) => {
|
||||
wrap='soft'
|
||||
ref={textRef}
|
||||
onChange={(e) => {
|
||||
isInPostPage ? setContent.content(e.target.value) : setSubmitStore({ content: e.target.value });
|
||||
const content = e.target.value.replace(/\n/g, '\n\n');
|
||||
isInPostPage ? setContent.content(content) : setSubmitStore({ content });
|
||||
}}
|
||||
/>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user