aboutsummaryrefslogtreecommitdiff
path: root/mardown/ast_list.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2025-10-02 15:06:42 +0200
committerAnhgelus Morhtuuzh <william@herges.fr>2025-10-02 15:06:42 +0200
commit21dd71949b05d84ef6ee2f05610ec7254f1086f0 (patch)
tree72f94b52067774eed8264c5468b3b8a32b8553ef /mardown/ast_list.go
parentbe4cea404c15979112653cd4d75784aab527f22c (diff)
feat(markdown): custom error display
Diffstat (limited to 'mardown/ast_list.go')
-rw-r--r--mardown/ast_list.go4
1 files changed, 2 insertions, 2 deletions
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</%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 {