RickStrahl/Westwind.AspNetCore.Markdown

.razor components in .net core 3 using v3.3.0-preview-1

juergen-de opened this issue · 1 comments

using a .razor component inside mvc view does not provide the taghelper, so I tried

@using Westwind.AspNetCore.Markdown with:

@Markdown.ParseHtmlString(@article.Body);

No HTML is produced, but a string containing the correct HTML is inserted into the page.
Is it a bug or am I doing something wrong ?
Typing the namespace I noticed that there is a Westwind.AspnetCore.Markdown too, which I assume is a bug.

Solution: @((MarkupString)(Markdown.Parse(@article.Body,false,false,true)))