From 9db485d6688015963199258f94c4ff98548d430a Mon Sep 17 00:00:00 2001
From: zack4485-MSFT <72422659+zack4485@users.noreply.github.com>
Date: Thu, 31 Oct 2024 02:23:32 -0400
Subject: [PATCH] Update Markdown.Blog.cs

Enabling anchor links
---
 MyApp/Markdown.Blog.cs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/MyApp/Markdown.Blog.cs b/MyApp/Markdown.Blog.cs
index ccd551e..9ad3776 100644
--- a/MyApp/Markdown.Blog.cs
+++ b/MyApp/Markdown.Blog.cs
@@ -120,7 +120,7 @@ public string GetSplashImage(MarkdownFileInfo post)
         var content = file.ReadAllText();
 
         var writer = new StringWriter();
-        var doc = CreateMarkdownFile(content, writer, pipeline);
+        var doc = CreateMarkdownFile(path, content, writer, pipeline);
         if (doc.Title == null)
         {
             log.LogWarning("No frontmatter found for {VirtualPath}, ignoring...", file.VirtualPath);
@@ -155,7 +155,7 @@ public void LoadFrom(string fromDirectory)
         var files = VirtualFiles.GetDirectory(fromDirectory).GetAllFiles().ToList();
         log.LogInformation("Found {Count} posts", files.Count);
 
-        var pipeline = CreatePipeline();
+        var pipeline = CreatePipeline(string.Empty);
 
         foreach (var file in files)
         {
@@ -189,4 +189,4 @@ public void LoadFrom(string fromDirectory)
 
     public override List<MarkdownFileBase> GetAll() => 
         VisiblePosts.Map(doc => ToMetaDoc(doc, x => x.Url ??= $"/posts/{x.Slug}"));
-}
\ No newline at end of file
+}