From 220122dec6b637b26c2a1d08728be68a67e23a97 Mon Sep 17 00:00:00 2001
From: shibao
"
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
"
"
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
"
"
end
)
+ |> String.replace("\n", "
")
|> HTML.raw()
end
end