1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-03-01 09:16:00 +00:00

Fixed AI output formatting

This commit is contained in:
M66B 2024-05-30 23:04:21 +02:00
parent 5754025cad
commit 7f4c0f6efb

View file

@ -140,7 +140,9 @@ public class AI {
} else
throw new IllegalArgumentException("No AI available");
return HtmlHelper.fromHtml(Markdown.toHtml(sb.toString()), context);
String html = Markdown.toHtml(sb.toString());
Document d = HtmlHelper.sanitizeCompose(context, html, false);
return HtmlHelper.fromDocument(context, d, null, null);
}
static String getSummarizePrompt(Context context) {