From 220122dec6b637b26c2a1d08728be68a67e23a97 Mon Sep 17 00:00:00 2001 From: shibao Date: Mon, 19 Dec 2022 21:09:57 -0500 Subject: [PATCH] add newlines to content components --- lib/memex_web/components/context_content.ex | 1 + lib/memex_web/components/note_content.ex | 1 + lib/memex_web/components/step_content.ex | 1 + 3 files changed, 3 insertions(+) diff --git a/lib/memex_web/components/context_content.ex b/lib/memex_web/components/context_content.ex index 1eac146..848dc5f 100644 --- a/lib/memex_web/components/context_content.ex +++ b/lib/memex_web/components/context_content.ex @@ -39,6 +39,7 @@ defmodule MemexWeb.Components.ContextContent do "

#{link}

" end ) + |> String.replace("\n", "
") |> HTML.raw() end end diff --git a/lib/memex_web/components/note_content.ex b/lib/memex_web/components/note_content.ex index c2a697a..04c9aa0 100644 --- a/lib/memex_web/components/note_content.ex +++ b/lib/memex_web/components/note_content.ex @@ -39,6 +39,7 @@ defmodule MemexWeb.Components.NoteContent do "

#{link}

" end ) + |> String.replace("\n", "
") |> HTML.raw() end end diff --git a/lib/memex_web/components/step_content.ex b/lib/memex_web/components/step_content.ex index 75a8595..aa1b79d 100644 --- a/lib/memex_web/components/step_content.ex +++ b/lib/memex_web/components/step_content.ex @@ -39,6 +39,7 @@ defmodule MemexWeb.Components.StepContent do "

#{link}

" end ) + |> String.replace("\n", "
") |> HTML.raw() end end