Render images server side. Remove JS hack to get images to render.
This commit is contained in:
parent
5d67e92245
commit
3eca70a102
9 changed files with 107 additions and 35 deletions
|
@ -2,6 +2,7 @@ using System;
|
|||
using Markdig;
|
||||
using Pek.Markdig.HighlightJs;
|
||||
using Website.Extensions;
|
||||
using Website.Markdig.Extensions;
|
||||
using Website.Models;
|
||||
|
||||
namespace Website.ViewModels
|
||||
|
@ -19,10 +20,11 @@ namespace Website.ViewModels
|
|||
private static string FormatTimestamp(DateTime timestamp) => timestamp.ToString($@"dddd \t\h\e d{timestamp.GetDaySuffix()} \o\f MMMM yyyy");
|
||||
|
||||
private static MarkdownPipeline GetPipeline() => new MarkdownPipelineBuilder()
|
||||
//.UseAdvancedExtensions()
|
||||
.UseAutoLinks()
|
||||
.UseSoftlineBreakAsHardlineBreak()
|
||||
.UseHighlightJs()
|
||||
//.UseAdvancedExtensions()
|
||||
.UseAutoLinks()
|
||||
.UseSoftlineBreakAsHardlineBreak()
|
||||
.UseHighlightJs()
|
||||
.UseBlogImageRenderer()
|
||||
.Build();
|
||||
|
||||
public int Id { get; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue