Closed Mhaxym closed 1 month ago
Thank you for your comment. We will make sure to update the NuGet version to the latest version and fix the bug (+ unit tests). We plan to do it tomorrow 😄
@Mhaxym could you please install MudBlazor.Markdown v7.8.0 and verify that it is all right. I cannot reproduce the null ref exception in my sample and the codeblock is rendered successfully.
@page "/"
@using System.Text
<PageTitle>Index</PageTitle>
<MudText Typo="Typo.h3">My markdown</MudText>
<MudMarkdown Value="@Value" CodeBlockTheme="CodeBlockTheme.StackoverflowLight"/>
@code
{
private string Value { get; } = new StringBuilder("text *italics* and bold and this is a [link](https://www.mynihongo.org)")
.AppendLine()
.AppendLine()
.AppendLine("cs")
.AppendLine("var a = a;")
.AppendLine("")
.ToString();
private void OnLinkClicked(string url)
{
Console.Write($"aaaa: {url}");
}
}
Hello! Thank you for your quick revision.
It's working fine with the latest version of MudBlazor.Markdown
.
GJ :rocket:
Overview
I saw that you already have a PR to support MudBlazor 7.0 but I was already using 7.6.0 and it was working fine just with
After updating to MudBlazor last version (from three days ago) to test everything it started throwing
Object reference
randomly.To reproduce it just create a project with MudBlazor 7.7.0 and try to use the component.