Skip to content

Commit 09b3ebf

Browse files
committed
fix gen image
1 parent 559d196 commit 09b3ebf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

decorators.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ type ImageDecoratorV2 struct {
3737

3838
func (decorator *ImageDecoratorV2) RenderBeginning(data map[string]string) string {
3939
if alt, ok := data["alt"]; ok {
40-
return fmt.Sprintf("<img src=\"%s\" alt=\"%s\">", data["data"], alt)
40+
return fmt.Sprintf("<img src=%s alt=\"%s\">", data["data"], alt)
4141
}
42-
return fmt.Sprintf("<img src=\"%s\">", data["data"])
42+
return fmt.Sprintf("<img src=%s>", data["data"])
4343
}
4444

4545
func (decorator *ImageDecoratorV2) RenderEnding(data map[string]string) string {

0 commit comments

Comments
 (0)