Have a look at the source code for the Docs Example Project to see an example site built with Markdown Razor.
It also includes docs on Markdown Razor and how it merges with a static default.shtml template and describes how it selects which /Views/MarkdownPage.md to choose based on the Request or Response DTO name.
A more flexible alternative may be to use it together with Razor by embedding a Markdown View inside a Razor page like how Razor Rockstars website is built, e.g. have a look at the bottom of the Eddie Vedder Page to see how it’s built by rendering a /Vedder/Content.md Markdown view with:
@Html.Partial("Content")
You can also render markdown in Razor pages directly with:
I got this working, part of the problem was that I was using compiled razor views, and .md views aren’t included in this. Once I set the md file to “Copy if newer”, it was embedded in the cshtml as expected. Thanks for help.