Skip to content

Commit

Permalink
Merge pull request #11 from zack4485/patch-12
Browse files Browse the repository at this point in the history
Enabling anchor links
  • Loading branch information
mythz authored Oct 31, 2024
2 parents b810fa8 + f93f5bb commit 87876c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions MyApp/Markdown.Podcasts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public string GetSplashImage(MarkdownFileInfo post)
var content = file.ReadAllText();

var writer = new StringWriter();
var doc = CreateMarkdownFile(content, writer, pipeline);
var doc = CreateMarkdownFile(string.Empty, content, writer, pipeline);

Check failure on line 145 in MyApp/Markdown.Podcasts.cs

View workflow job for this annotation

GitHub Actions / build

No overload for method 'CreateMarkdownFile' takes 4 arguments

Check failure on line 145 in MyApp/Markdown.Podcasts.cs

View workflow job for this annotation

GitHub Actions / build

No overload for method 'CreateMarkdownFile' takes 4 arguments
if (doc.Title == null)
{
log.LogWarning("No frontmatter found for {VirtualPath}, ignoring...", file.VirtualPath);
Expand Down Expand Up @@ -177,7 +177,7 @@ public void LoadFrom(string fromDirectory)
var files = VirtualFiles.GetDirectory(fromDirectory).GetAllFiles().ToList();
log.LogInformation("Found {Count} podcasts", files.Count);

var pipeline = CreatePipeline();
var pipeline = CreatePipeline(string.Empty);

Check failure on line 180 in MyApp/Markdown.Podcasts.cs

View workflow job for this annotation

GitHub Actions / build

No overload for method 'CreatePipeline' takes 1 arguments

Check failure on line 180 in MyApp/Markdown.Podcasts.cs

View workflow job for this annotation

GitHub Actions / build

No overload for method 'CreatePipeline' takes 1 arguments

foreach (var file in files)
{
Expand Down Expand Up @@ -211,4 +211,4 @@ public void LoadFrom(string fromDirectory)

public override List<MarkdownFileBase> GetAll() =>
VisibleEpisodes.Map(doc => ToMetaDoc(doc, x => x.Url ??= $"/posts/{x.Slug}"));
}
}

0 comments on commit 87876c3

Please sign in to comment.