Why do my markdown images show in VS22 markdown preview but not when the app is running?

Joe Brown 0 Reputation points

I am making an article/blog style website on Blazor Server.

I have an Article Razorpage which using parameters will go and retrieve the correct markdown file. When viewing the markdown file, the images show fine in the preview panel, however when I bring the markdown file to my Razor page and display it, the images do not show.

This is the img tag I used:

<img src="Images/Cheese_Pallets.jpg" alt="Pallets of Cheese" style="height:70%; width:70%"/>

A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,377 questions
{count} votes