about summary refs log tree commit diff stats
path: root/internal/components/markdown.templ
diff options
context:
space:
mode:
Diffstat (limited to 'internal/components/markdown.templ')
-rw-r--r--internal/components/markdown.templ4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/components/markdown.templ b/internal/components/markdown.templ
index ff1212f..0ce98ad 100644
--- a/internal/components/markdown.templ
+++ b/internal/components/markdown.templ
@@ -5,9 +5,9 @@ import (
 
 	"go.alanpearce.eu/searchix/internal/nix"
 
+	"context"
 	"github.com/yuin/goldmark"
 	"github.com/yuin/goldmark/extension"
-	"context"
 	"io"
 )
 
@@ -27,7 +27,7 @@ func firstSentence[T ~string](text T) T {
 }
 
 func markdown(text nix.Markdown) templ.Component {
-	return templ.ComponentFunc(func(ctx context.Context, w io.Writer) error {
+	return templ.ComponentFunc(func(ctx context.Context, w io.Writer) errors.E {
 		err := md.Convert([]byte(text), w)
 
 		return err