diff options
author | Alan Pearce | 2025-03-12 22:39:51 +0100 |
---|---|---|
committer | Alan Pearce | 2025-03-12 22:39:51 +0100 |
commit | 9015baf955c94a806c01b3dcd5648c8e68ad2685 (patch) | |
tree | 5f59386c2ab31b6e45b85576e45a1fc8ae448ae0 /internal/components/markdown.templ | |
parent | 7bb77ff5729cc9434afee895a470fd3b4c12e6d1 (diff) | |
download | searchix-9015baf955c94a806c01b3dcd5648c8e68ad2685.tar.lz searchix-9015baf955c94a806c01b3dcd5648c8e68ad2685.tar.zst searchix-9015baf955c94a806c01b3dcd5648c8e68ad2685.zip |
Diffstat (limited to 'internal/components/markdown.templ')
-rw-r--r-- | internal/components/markdown.templ | 4 |
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 |