From 00557c355c12458e65ae5cd9e0fa5ebfba229b3a Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 16 Apr 2024 19:55:21 +0200 Subject: rename variable --- cmd/build/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/build/main.go b/cmd/build/main.go index ad905fd..5e19517 100644 --- a/cmd/build/main.go +++ b/cmd/build/main.go @@ -77,7 +77,7 @@ func readPosts(root string, inputDir string, outputDir string) ([]Post, Tags, er } outputReplacer := strings.NewReplacer(root, outputDir, ".md", "/index.html") urlReplacer := strings.NewReplacer(root, "", ".md", "/") - md := goldmark.New( + markdown := goldmark.New( goldmark.WithRendererOptions( html.WithUnsafe(), ), @@ -102,7 +102,7 @@ func readPosts(root string, inputDir string, outputDir string) ([]Post, Tags, er } var buf bytes.Buffer - if err := md.Convert(*content, &buf); err != nil { + if err := markdown.Convert(*content, &buf); err != nil { return nil, nil, errors.WithMessage(err, "could not convert markdown content") } post := Post{ -- cgit 1.4.1