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_quote.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mardown/ast_quote.go') diff --git a/mardown/ast_quote.go b/mardown/ast_quote.go index f046445..ffc8e83 100644 --- a/mardown/ast_quote.go +++ b/mardown/ast_quote.go @@ -11,7 +11,7 @@ type astQuote struct { source []*astParagraph } -func (a *astQuote) Eval() (template.HTML, error) { +func (a *astQuote) Eval() (template.HTML, *ParseError) { var quote template.HTML for _, c := range a.quote { ct, err := c.Eval() @@ -36,7 +36,7 @@ func (a *astQuote) Eval() (template.HTML, error) { return template.HTML(fmt.Sprintf(`
%s
`, quote)), nil } -func quote(lxs *lexers) (*astQuote, error) { +func quote(lxs *lexers) (*astQuote, *ParseError) { tree := new(astQuote) n := 0 quoteContinue := true -- cgit v1.2.3