fix: build error (incomplete commit)
Alan Pearce alan@alanpearce.eu
Sun, 16 Mar 2025 20:04:29 +0100
1 files changed, 2 insertions(+), 5 deletions(-)
M internal/components/markdown.templ → internal/components/markdown.templ
@@ -7,7 +7,6 @@ "regexp" "github.com/yuin/goldmark" "github.com/yuin/goldmark/extension" - "gitlab.com/tozd/go/errors" "go.alanpearce.eu/searchix/internal/nix" ) @@ -28,9 +27,7 @@ return text } func markdown(text nix.Markdown) templ.Component { - return templ.ComponentFunc(func(ctx context.Context, w io.Writer) errors.E { - err := md.Convert([]byte(text), w) - - return err + return templ.ComponentFunc(func(ctx context.Context, w io.Writer) error { + return md.Convert([]byte(text), w) }) }