diff options
| author | William Hergès <william@herges.fr> | 2025-10-03 22:22:40 +0200 |
|---|---|---|
| committer | William Hergès <william@herges.fr> | 2025-10-03 22:22:40 +0200 |
| commit | 40b1f53362105a495c6a486f3488e83d79eb582a (patch) | |
| tree | b84609a49ad55881d0e54f72a474d3bbb1db31ae /markdown/ast_list.go | |
| parent | ce6a2da035dc045510157a0eeefaebf56f0e8958 (diff) | |
feat(markdown): eval option to setup custom image source func
Diffstat (limited to 'markdown/ast_list.go')
| -rw-r--r-- | markdown/ast_list.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/markdown/ast_list.go b/markdown/ast_list.go index 9aa36e7..b82df67 100644 --- a/markdown/ast_list.go +++ b/markdown/ast_list.go @@ -20,10 +20,10 @@ type astList struct { content []*astParagraph } -func (a *astList) Eval() (template.HTML, *ParseError) { +func (a *astList) 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 "", err } |
