diff --git a/client/src/components/Journey/JournalBody.tsx b/client/src/components/Journey/JournalBody.tsx index b043c199..2caa84c3 100644 --- a/client/src/components/Journey/JournalBody.tsx +++ b/client/src/components/Journey/JournalBody.tsx @@ -1,5 +1,6 @@ import ReactMarkdown from 'react-markdown' import remarkGfm from 'remark-gfm' +import remarkBreaks from 'remark-breaks' interface Props { text: string @@ -15,11 +16,11 @@ export default function JournalBody({ text, dark }: Props) { color: 'inherit', }}>

{children}

, - h2: ({ children }) =>

{children}

, - h3: ({ children }) =>

{children}

, + h1: ({ children }) =>

{children}

, + h2: ({ children }) =>

{children}

, + h3: ({ children }) =>

{children}

, p: ({ children }) =>

{children}

, blockquote: ({ children }) => (
- {text} + {text.replace(/^(.+)\n([-=]{3,})$/gm, '$1\n\n$2')} ) diff --git a/client/src/pages/JourneyDetailPage.tsx b/client/src/pages/JourneyDetailPage.tsx index 73710b8a..eee2e222 100644 --- a/client/src/pages/JourneyDetailPage.tsx +++ b/client/src/pages/JourneyDetailPage.tsx @@ -1004,7 +1004,7 @@ function VerdictSection({ pros, cons }: { pros: string[]; cons: string[] }) { >
- Pros & Cons + {t('journey.editor.prosCons')} {pros.length > 0 && ( -
+
- {t('journey.verdict.lovedIt')} + {t('journey.verdict.lovedIt')} {pros.length}
@@ -1061,12 +1061,12 @@ function VerdictSection({ pros, cons }: { pros: string[]; cons: string[] }) {
)} {cons.length > 0 && ( -
+
- {t('journey.verdict.couldBeBetter')} + {t('journey.verdict.couldBeBetter')} {cons.length}