aboutsummaryrefslogtreecommitdiff
path: root/markdown/ast_code.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_code.go
parentce6a2da035dc045510157a0eeefaebf56f0e8958 (diff)
feat(markdown): eval option to setup custom image source func
Diffstat (limited to 'markdown/ast_code.go')
-rw-r--r--markdown/ast_code.go2
1 files changed, 1 insertions, 1 deletions
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("<code>%s</code>", template.HTMLEscapeString(a.content))), nil