.razor components in .net core 3 using v3.3.0-preview-1
juergen-de opened this issue · 1 comments
juergen-de commented
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.
juergen-de commented
Solution: @((MarkupString)(Markdown.Parse(@article.Body,false,false,true)))