Skip to content

Commit 5fe8fee

Browse files
appleboylunny
authored andcommitted
back port from #1709 (#2291)
Signed-off-by: Bo-Yi Wu <[email protected]>
1 parent 5bb20be commit 5fe8fee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/markdown/markdown.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,12 +155,12 @@ func (r *Renderer) ListItem(out *bytes.Buffer, text []byte, flags int) {
155155
}
156156
switch {
157157
case bytes.HasPrefix(text, []byte(prefix+"[ ] ")):
158-
text = append([]byte(`<div class="ui fitted disabled checkbox"><input type="checkbox" disabled="disabled" /><label /></div>`), text[3+len(prefix):]...)
158+
text = append([]byte(`<span class="ui fitted disabled checkbox"><input type="checkbox" disabled="disabled" /><label /></span>`), text[3+len(prefix):]...)
159159
if prefix != "" {
160160
text = bytes.Replace(text, []byte(prefix), []byte{}, 1)
161161
}
162162
case bytes.HasPrefix(text, []byte(prefix+"[x] ")):
163-
text = append([]byte(`<div class="ui checked fitted disabled checkbox"><input type="checkbox" checked="" disabled="disabled" /><label /></div>`), text[3+len(prefix):]...)
163+
text = append([]byte(`<span class="ui checked fitted disabled checkbox"><input type="checkbox" checked="" disabled="disabled" /><label /></span>`), text[3+len(prefix):]...)
164164
if prefix != "" {
165165
text = bytes.Replace(text, []byte(prefix), []byte{}, 1)
166166
}

0 commit comments

Comments
 (0)