aboutsummaryrefslogtreecommitdiff
path: root/markdown/ast_quote.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_quote.go
parentce6a2da035dc045510157a0eeefaebf56f0e8958 (diff)
feat(markdown): eval option to setup custom image source func
Diffstat (limited to 'markdown/ast_quote.go')
-rw-r--r--markdown/ast_quote.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/markdown/ast_quote.go b/markdown/ast_quote.go
index 3040636..ebd0527 100644
--- a/markdown/ast_quote.go
+++ b/markdown/ast_quote.go
@@ -11,10 +11,10 @@ type astQuote struct {
source []*astParagraph
}
-func (a *astQuote) Eval() (template.HTML, *ParseError) {
+func (a *astQuote) Eval(opt *Option) (template.HTML, *ParseError) {
var quote template.HTML
for _, c := range a.quote {
- ct, err := c.Eval()
+ ct, err := c.Eval(opt)
if err != nil {
return "", err
}
@@ -23,7 +23,7 @@ func (a *astQuote) Eval() (template.HTML, *ParseError) {
quote = template.HTML(fmt.Sprintf("<blockquote>%s</blockquote>", trimSpace(quote)))
var source template.HTML
for _, c := range a.source {
- ct, err := c.Eval()
+ ct, err := c.Eval(opt)
if err != nil {
return "", err
}