Task Detail
-
* Install-Package Markdig within BusinessAccess because I should done this in BusinessAccess layer. * Implemented Markdown to content: // Applying Markdown to conent var pipeline = new MarkdownPipelineBuilder().UseAdvancedExtensions().Build(); PostDetailView postDetailView = new PostDetailView { Title = post.Title, Author = post.Author, PublishedDate = post.PublishedDate, Summary = post.Summary, Content = Markdown.ToHtml(post.Content, pipeline), Tags = post.Tags }; * Display Markdown in View <div>@Html.Raw(@Model.Content)</div> ** Basically the Markdig turns the Markdown content into Html format.
11/05/2024 14:51:31