defmodule MemexWeb.Components.StepContent do @moduledoc """ Display the content for a step """ use MemexWeb, :component alias Memex.Pipelines.Steps.Step alias Phoenix.HTML attr :step, Step, required: true def step_content(assigns) do ~H"""
<%= add_links_to_content(@step.content) %>
"
end
)
|> String.replace("\n", "
")
|> HTML.raw()
end
end