feat: ccloseout of changes for audit

This commit is contained in:
2026-06-22 11:17:03 +02:00
parent e1abe457e8
commit cea47f10e2
7 changed files with 85 additions and 64 deletions

View File

@@ -545,8 +545,13 @@ defmodule BDS.Desktop.ShellLive.ChatEditor do
@spec markdown_html(binary()) :: Phoenix.HTML.Safe.t()
def markdown_html(content) when is_binary(content) do
# Match Earmark's defaults (GFM tables, strikethrough, autolinks); escape
# raw HTML to text rather than rendering it, as the old escape: true did.
html =
case MDEx.to_html(content) do
case MDEx.to_html(content,
extension: [table: true, strikethrough: true, autolink: true],
render: [escape: true]
) do
{:ok, rendered} -> rendered
{:error, _reason} -> ""
end