diff --git a/lib/ketbin_web/templates/page/show.html.heex b/lib/ketbin_web/templates/page/show.html.heex index 2022e51..d08decc 100644 --- a/lib/ketbin_web/templates/page/show.html.heex +++ b/lib/ketbin_web/templates/page/show.html.heex @@ -9,8 +9,8 @@ <% end %> <%= if @extension == "md" do%> -
<%= raw Earmark.as_html!(@paste.content, escape: true, gfm_tables: true) |> HtmlSanitizeEx.html5 %>
+
<%= raw Earmark.as_html!(@paste.content, escape: true, gfm_tables: true) |> HtmlSanitizeEx.markdown_html %>
<% else %> - <%= raw Ketbin.Utils.Syntax.highlight_text(@paste.content, @extension) |> HtmlSanitizeEx.html5 %> + <%= raw Ketbin.Utils.Syntax.highlight_text(@paste.content, @extension) |> HtmlSanitizeEx.strip_tags %> <% end %>