diff --git a/Agent86/Agent86/Pages/Index.cshtml b/Agent86/Agent86/Pages/Index.cshtml
index 587b6e0..944dba2 100644
--- a/Agent86/Agent86/Pages/Index.cshtml
+++ b/Agent86/Agent86/Pages/Index.cshtml
@@ -16,13 +16,13 @@
}
else
{
-
+
@foreach (var msg in Model.ChatHistory)
{
- @msg.Role: @msg.Content
+ @msg.Role: @Html.Raw(msg.Content)
}
diff --git a/Agent86/Agent86/Pages/Index.cshtml.cs b/Agent86/Agent86/Pages/Index.cshtml.cs
index 7e05d4e..c735b94 100644
--- a/Agent86/Agent86/Pages/Index.cshtml.cs
+++ b/Agent86/Agent86/Pages/Index.cshtml.cs
@@ -86,7 +86,7 @@ namespace Agent86.Pages
var reply = await _ollama.GenerateReplyAsync(ChatHistory, theScene.instruction);
- ChatHistory.Add(new ChatMessage { Role = theScene.customer, Content = ToPlainText(reply) });
+ ChatHistory.Add(new ChatMessage { Role = theScene.customer, Content = Markdown.ToHtml(reply) });
}
SaveHistory();
diff --git a/Agent86/Agent86/Pages/Shared/_Layout.cshtml b/Agent86/Agent86/Pages/Shared/_Layout.cshtml
index 98d60a4..fc27027 100644
--- a/Agent86/Agent86/Pages/Shared/_Layout.cshtml
+++ b/Agent86/Agent86/Pages/Shared/_Layout.cshtml
@@ -9,7 +9,7 @@
-
+