Skip to content

Commit 3b5ac62

Browse files
committed
back port from go-gitea#1709
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
1 parent 5bb20be commit 3b5ac62

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)