@using Markdig
@((MarkupString)MarkdownText)

@code {

    [Inject] protected HttpClient Http { get; set; } = default!;

    [Parameter] public string MarkdownFileName { get; set; } = default!;

    private string MarkdownText { get; set; } = "";

    protected override async Task OnInitializedAsync()
    {
        MarkdownText = Markdown.ToHtml(await Http.GetStringAsync($"markdown/{MarkdownFileName}.md"));
    }

}