From 40b1f53362105a495c6a486f3488e83d79eb582a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20Herg=C3=A8s?= Date: Fri, 3 Oct 2025 22:22:40 +0200 Subject: feat(markdown): eval option to setup custom image source func --- markdown/ast_quote.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'markdown/ast_quote.go') diff --git a/markdown/ast_quote.go b/markdown/ast_quote.go index 3040636..ebd0527 100644 --- a/markdown/ast_quote.go +++ b/markdown/ast_quote.go @@ -11,10 +11,10 @@ type astQuote struct { source []*astParagraph } -func (a *astQuote) Eval() (template.HTML, *ParseError) { +func (a *astQuote) Eval(opt *Option) (template.HTML, *ParseError) { var quote template.HTML for _, c := range a.quote { - ct, err := c.Eval() + ct, err := c.Eval(opt) if err != nil { return "", err } @@ -23,7 +23,7 @@ func (a *astQuote) Eval() (template.HTML, *ParseError) { quote = template.HTML(fmt.Sprintf("
%s
", trimSpace(quote))) var source template.HTML for _, c := range a.source { - ct, err := c.Eval() + ct, err := c.Eval(opt) if err != nil { return "", err } -- cgit v1.2.3