Skip to content

Commit 164a815

Browse files
committed
Fix to write directly instead of creating intermediate string
1 parent 90fa1a9 commit 164a815

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/markup/markdown/goldmark.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ func (r *HTMLRenderer) renderTaskCheckBoxListItem(w util.BufWriter, source []byt
462462
} else {
463463
_, _ = w.WriteString("<li>")
464464
}
465-
_, _ = w.WriteString(fmt.Sprintf(`<input type="checkbox" disabled="" data-source-position="%d"`, n.SourcePosition))
465+
fmt.Fprintf(w, `<input type="checkbox" disabled="" data-source-position="%d"`, n.SourcePosition)
466466
if n.IsChecked {
467467
_, _ = w.WriteString(` checked=""`)
468468
}

0 commit comments

Comments
 (0)