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_code.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'markdown/ast_code.go') diff --git a/markdown/ast_code.go b/markdown/ast_code.go index 85a3668..6980f32 100644 --- a/markdown/ast_code.go +++ b/markdown/ast_code.go @@ -25,7 +25,7 @@ type astCode struct { codeType codeType } -func (a *astCode) Eval() (template.HTML, *ParseError) { +func (a *astCode) Eval(_ *Option) (template.HTML, *ParseError) { switch a.codeType { case codeOneLine: return template.HTML(fmt.Sprintf("%s", template.HTMLEscapeString(a.content))), nil -- cgit v1.2.3