Skip to content

Commit

Permalink
adding wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
jchenry committed Jan 22, 2022
1 parent 347bda3 commit ecbf621
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion render.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func (r *Renderer) Render(w util.BufWriter, src []byte, node ast.Node, entering
pikchr.HTMLError(),
)

_, _ = w.WriteString(fmt.Sprintf(`<div class="pikchr-svg" style="max-width:%dx">`, res.Width))
_, _ = w.WriteString(fmt.Sprintf(`<div class="pikchr-svg" style="max-width:%dpx">`, res.Width))
_, _ = w.Write([]byte(res.Data))
_, _ = w.WriteString("</div>")
}
Expand Down

0 comments on commit ecbf621

Please sign in to comment.