Use MDEx to consolidate Markdown handling

This commit is contained in:
Claudio Ortolina
2026-03-08 09:27:35 +00:00
parent ea8318c5fc
commit d76471b03e
7 changed files with 11 additions and 11 deletions
@@ -347,7 +347,7 @@ defmodule MusicLibraryWeb.SearchComponents do
end
# sobelow_skip ["XSS.Raw"]
# Markdown.to_html/1 sanitizes HTML via HtmlSanitizeEx
# Markdown.to_html/1 sanitizes HTML via MDEx (ammonia)
defp render_description(description) do
description
|> String.slice(0, 100)