10 lines
192 B
Elixir
10 lines
192 B
Elixir
defmodule PlannerWeb.Util do
|
|
import Phoenix.HTML
|
|
alias Earmark.Options
|
|
|
|
def md_to_html(md_text) do
|
|
md_text
|
|
|> Earmark.as_html!(%Options{smartypants: false})
|
|
|> raw
|
|
end
|
|
end
|