diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2025-10-02 15:06:42 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2025-10-02 15:06:42 +0200 |
| commit | 21dd71949b05d84ef6ee2f05610ec7254f1086f0 (patch) | |
| tree | 72f94b52067774eed8264c5468b3b8a32b8553ef /mardown/ast_quote.go | |
| parent | be4cea404c15979112653cd4d75784aab527f22c (diff) | |
feat(markdown): custom error display
Diffstat (limited to 'mardown/ast_quote.go')
| -rw-r--r-- | mardown/ast_quote.go | 4 |
1 files changed, 2 insertions, 2 deletions
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(`<div class="quote">%s</div>`, quote)), nil } -func quote(lxs *lexers) (*astQuote, error) { +func quote(lxs *lexers) (*astQuote, *ParseError) { tree := new(astQuote) n := 0 quoteContinue := true |
