mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-02-05 15:49:07 +00:00
Improved Markdown handling again
Sometimes, it happens that the live Markdown rendering goes wrong. See also #28 and b185463c3e
.
This commit is contained in:
parent
1690bd13ec
commit
01e237da4f
@ -1,3 +1,4 @@
|
|||||||
|
@using AIStudio.Tools
|
||||||
@using MudBlazor
|
@using MudBlazor
|
||||||
|
|
||||||
<MudCard Class="my-2 rounded-lg" Outlined="@true">
|
<MudCard Class="my-2 rounded-lg" Outlined="@true">
|
||||||
@ -35,8 +36,17 @@
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
<MudMarkdown Value="@textContent.Text"/>
|
@if (this.Content.IsStreaming)
|
||||||
|
{
|
||||||
|
<MudText Typo="Typo.body1" Style="white-space: pre-wrap;">
|
||||||
|
@textContent.Text
|
||||||
|
</MudText>
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
|
||||||
<MudMarkdown Value="@textContent.Text" OverrideHeaderTypo="@Markdown.OverrideHeaderTypo"/>
|
<MudMarkdown Value="@textContent.Text" OverrideHeaderTypo="@Markdown.OverrideHeaderTypo"/>
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user