@page "/admin/blog-posts/edit/{id}" @using Markdig @using OliverBooth.Data.Blog @model OliverBooth.Pages.Admin.EditBlogPost @inject MarkdownPipeline MarkdownPipeline @{ Layout = "Shared/_AdminLayout"; ViewData["Title"] = "Edit Post"; IBlogPost post = Model.BlogPost; }
Preview
Post ID
Title
@Html.Raw(Markdown.ToHtml(post.Body, MarkdownPipeline))