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\">"
|
"</p>#{link}<p class=\"inline\">"
|
||||||
end
|
end
|
||||||
)
|
)
|
||||||
|
|> String.replace("\n", "<br>")
|
||||||
|> HTML.raw()
|
|> HTML.raw()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -39,6 +39,7 @@ defmodule MemexWeb.Components.NoteContent do
|
|||||||
"</p>#{link}<p class=\"inline\">"
|
"</p>#{link}<p class=\"inline\">"
|
||||||
end
|
end
|
||||||
)
|
)
|
||||||
|
|> String.replace("\n", "<br>")
|
||||||
|> HTML.raw()
|
|> HTML.raw()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -39,6 +39,7 @@ defmodule MemexWeb.Components.StepContent do
|
|||||||
"</p>#{link}<p class=\"inline\">"
|
"</p>#{link}<p class=\"inline\">"
|
||||||
end
|
end
|
||||||
)
|
)
|
||||||
|
|> String.replace("\n", "<br>")
|
||||||
|> HTML.raw()
|
|> HTML.raw()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user