fix markdown newline

This commit is contained in:
plebbitor
2023-04-21 16:43:22 +02:00
parent 33eec7644a
commit 552ef6c9e4
3 changed files with 6 additions and 4 deletions
+4
View File
@@ -37,6 +37,10 @@ const GlobalStyle = createGlobalStyle`
padding: 3px;
opacity: 100%;
}
.line-break {
white-space: pre-line;
}
`;
const StyledContainer = styled(ToastContainer)`
+1 -3
View File
@@ -62,10 +62,8 @@ const Post = ({ content, handlequoteclick, comment }) => {
video: () => null,
source: () => null,
gif: () => null,
p: ({ children }) => (
<p>{createQuotelink(handlequoteclick, comment, children)}</p>
),
}}
className='line-break'
/>
);
};
+1 -1
View File
@@ -227,7 +227,7 @@ const Thread = () => {
<Helmet>
<title>
{(
(comment.content.slice(0, 40)) + " - "
(comment.content?.slice(0, 40)) + " - "
+ (selectedTitle ? selectedTitle : selectedAddress)
+ " - plebchan"
)}