diff --git a/lib/bdfr_browser/render_utils.ex b/lib/bdfr_browser/render_utils.ex index d9964fe..f78a3ba 100644 --- a/lib/bdfr_browser/render_utils.ex +++ b/lib/bdfr_browser/render_utils.ex @@ -1,4 +1,8 @@ defmodule BdfrBrowser.RenderUtils do + def comment(cmt) do + Earmark.as_html!(cmt) + end + def message(msg) do img_replacement = "\"Image\"" diff --git a/priv/templates/http/_comment.eex b/priv/templates/http/_comment.eex index cfe1a83..cb5c187 100644 --- a/priv/templates/http/_comment.eex +++ b/priv/templates/http/_comment.eex @@ -5,7 +5,7 @@ <%= if comment.author == "AutoModerator" do %>

Hidden AutoModerator comment

<% else %> - <%= Earmark.as_html!(comment.body) %> + <%= BdfrBrowser.RenderUtils.comment(comment.body) %> <% end %>