mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-02-05 22:49:07 +00:00
This is necessary due to issue https://github.com/MyNihongo/MudBlazor.Markdown/issues/247 I created a PR as well: https://github.com/MyNihongo/MudBlazor.Markdown/pull/246
14 lines
307 B
C#
14 lines
307 B
C#
using Markdig.Extensions.Mathematics;
|
|
|
|
namespace MudBlazor;
|
|
|
|
internal static class MathInlineEx
|
|
{
|
|
public static string GetDelimiter(this MathInline @this) =>
|
|
string.Create(@this.DelimiterCount, @this.Delimiter, static (span, c) =>
|
|
{
|
|
for (var i = 0; i < span.Length; i++)
|
|
span[i] = c;
|
|
});
|
|
}
|