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_header.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'markdown/ast_header.go') diff --git a/markdown/ast_header.go b/markdown/ast_header.go index d51b046..716a4a6 100644 --- a/markdown/ast_header.go +++ b/markdown/ast_header.go @@ -13,12 +13,12 @@ type astHeader struct { content *astParagraph } -func (a *astHeader) Eval() (template.HTML, *ParseError) { +func (a *astHeader) Eval(opt *Option) (template.HTML, *ParseError) { if a.level > 6 { return "", &ParseError{lxs: lexers{}, internal: ErrInvalidCodeFormat} } var content template.HTML - content, err := a.content.Eval() + content, err := a.content.Eval(opt) if err != nil { return "", err } -- cgit v1.2.3