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_quote.go | |
| parent | ce6a2da035dc045510157a0eeefaebf56f0e8958 (diff) | |
feat(markdown): eval option to setup custom image source func
Diffstat (limited to 'markdown/ast_quote.go')
| -rw-r--r-- | markdown/ast_quote.go | 6 |
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 } |
