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:
parent
5754025cad
commit
7f4c0f6efb
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue