Switched the solution to fix #28 (and #24)

Instead of using a custom fork of the component, we use the release version. The custom fork causes #24. Now, we did what anyone does: We show the plain Markdown code first and switch to Markdown rendering after streaming is done.

- Removed local custom fork of the library
- Added release version of library
- Show plain Markdown code while streaming
- Switch to Markdown rendering after streaming
This commit is contained in:
tsommer committed 2024-05-13 18:42:34 +02:00
1 parent 8b6495ebe0
commit b185463c3e
58 files changed
+11 -11218

No files matched your search

@@ -35,7 +35,16 @@
}
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"/>
}
}
}
@@ -36,10 +36,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.FileProviders.Embedded" Version="8.0.4" />
<PackageReference Include="MudBlazor" Version="6.19.1" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\MudBlazor.Markdown\MudBlazor.Markdown.csproj" />
<PackageReference Include="MudBlazor.Markdown" Version="0.1.3" />
</ItemGroup>
</Project>