Fixed viewing markdown

master
M66B 5 months ago
parent a80771db51
commit 35e34ea421

@ -240,7 +240,7 @@ public class AI {
throw new IllegalArgumentException("No AI available"); throw new IllegalArgumentException("No AI available");
String html = Markdown.toHtml(sb.toString(), context); String html = Markdown.toHtml(sb.toString(), context);
Document doc = HtmlHelper.sanitizeCompose(context, html, false); Document doc = HtmlHelper.sanitizeView(context, JsoupEx.parse(html), false);
return HtmlHelper.fromDocument(context, doc, null, null); return HtmlHelper.fromDocument(context, doc, null, null);
} }
} }

Loading…
Cancel
Save