aboutsummaryrefslogtreecommitdiff
path: root/markdown/ast_header.go
diff options
context:
space:
mode:
authorWilliam Hergès <william@herges.fr>2025-10-03 22:22:40 +0200
committerWilliam Hergès <william@herges.fr>2025-10-03 22:22:40 +0200
commit40b1f53362105a495c6a486f3488e83d79eb582a (patch)
treeb84609a49ad55881d0e54f72a474d3bbb1db31ae /markdown/ast_header.go
parentce6a2da035dc045510157a0eeefaebf56f0e8958 (diff)
feat(markdown): eval option to setup custom image source func
Diffstat (limited to 'markdown/ast_header.go')
-rw-r--r--markdown/ast_header.go4
1 files changed, 2 insertions, 2 deletions
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
}