rename variable
Alan Pearce alan@alanpearce.eu
Tue, 16 Apr 2024 19:55:21 +0200
1 files changed, 2 insertions(+), 2 deletions(-)
jump to
M cmd/build/main.go → cmd/build/main.go
@@ -77,7 +77,7 @@ return nil, nil, errors.WithMessagef(err, "could not read post directory %s", subdir) } 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 @@ tags.Add(strings.ToLower(tag)) } 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{