feat: ccloseout of changes for audit
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user