mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-27 19:35:10 +01:00
Fixed AI output formatting
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user