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_modifier.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'markdown/ast_modifier.go') diff --git a/markdown/ast_modifier.go b/markdown/ast_modifier.go index 205786a..909d25e 100644 --- a/markdown/ast_modifier.go +++ b/markdown/ast_modifier.go @@ -26,10 +26,10 @@ type astModifier struct { super bool } -func (a *astModifier) Eval() (template.HTML, *ParseError) { +func (a *astModifier) Eval(opt *Option) (template.HTML, *ParseError) { var content template.HTML for _, c := range a.content { - ct, err := c.Eval() + ct, err := c.Eval(opt) if err != nil { return "", &ParseError{lxs: lexers{}, internal: err} } -- cgit v1.2.3