add newlines to content components
This commit is contained in:
parent
de399b4819
commit
220122dec6
@ -39,6 +39,7 @@ defmodule MemexWeb.Components.ContextContent do
|
||||
"</p>#{link}<p class=\"inline\">"
|
||||
end
|
||||
)
|
||||
|> String.replace("\n", "<br>")
|
||||
|> HTML.raw()
|
||||
end
|
||||
end
|
||||
|
@ -39,6 +39,7 @@ defmodule MemexWeb.Components.NoteContent do
|
||||
"</p>#{link}<p class=\"inline\">"
|
||||
end
|
||||
)
|
||||
|> String.replace("\n", "<br>")
|
||||
|> HTML.raw()
|
||||
end
|
||||
end
|
||||
|
@ -39,6 +39,7 @@ defmodule MemexWeb.Components.StepContent do
|
||||
"</p>#{link}<p class=\"inline\">"
|
||||
end
|
||||
)
|
||||
|> String.replace("\n", "<br>")
|
||||
|> HTML.raw()
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user