From 21dd71949b05d84ef6ee2f05610ec7254f1086f0 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Thu, 2 Oct 2025 15:06:42 +0200 Subject: feat(markdown): custom error display --- mardown/ast_list.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mardown/ast_list.go') diff --git a/mardown/ast_list.go b/mardown/ast_list.go index f95324b..39f0178 100644 --- a/mardown/ast_list.go +++ b/mardown/ast_list.go @@ -20,7 +20,7 @@ type astList struct { content []*astParagraph } -func (a *astList) Eval() (template.HTML, error) { +func (a *astList) Eval() (template.HTML, *ParseError) { var content template.HTML for _, c := range a.content { ct, err := c.Eval() @@ -32,7 +32,7 @@ func (a *astList) Eval() (template.HTML, error) { return template.HTML(fmt.Sprintf("<%s>%s", a.tag, content, a.tag)), nil } -func list(lxs *lexers) (block, error) { +func list(lxs *lexers) (block, *ParseError) { tree := new(astList) tree.tag = detectListType(lxs.Current().Value) if len(tree.tag) == 0 { -- cgit v1.2.3