mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix markdown newline
This commit is contained in:
@@ -37,6 +37,10 @@ const GlobalStyle = createGlobalStyle`
|
||||
padding: 3px;
|
||||
opacity: 100%;
|
||||
}
|
||||
|
||||
.line-break {
|
||||
white-space: pre-line;
|
||||
}
|
||||
`;
|
||||
|
||||
const StyledContainer = styled(ToastContainer)`
|
||||
|
||||
@@ -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'
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -227,7 +227,7 @@ const Thread = () => {
|
||||
<Helmet>
|
||||
<title>
|
||||
{(
|
||||
(comment.content.slice(0, 40)) + " - "
|
||||
(comment.content?.slice(0, 40)) + " - "
|
||||
+ (selectedTitle ? selectedTitle : selectedAddress)
|
||||
+ " - plebchan"
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user