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