Skip to content

Commit 5ca3046

Browse files
ethantkoenigappleboy
authored andcommitted
Fix rendering of issue checkboxes (#1709)
1 parent 2cf80f4 commit 5ca3046

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
@@ -144,12 +144,12 @@ func (r *Renderer) ListItem(out *bytes.Buffer, text []byte, flags int) {
144144
}
145145
switch {
146146
case bytes.HasPrefix(text, []byte(prefix+"[ ] ")):
147-
text = append([]byte(`<div class="ui fitted disabled checkbox"><input type="checkbox" disabled="disabled" /><label /></div>`), text[3+len(prefix):]...)
147+
text = append([]byte(`<span class="ui fitted disabled checkbox"><input type="checkbox" disabled="disabled" /><label /></span>`), text[3+len(prefix):]...)
148148
if prefix != "" {
149149
text = bytes.Replace(text, []byte(prefix), []byte{}, 1)
150150
}
151151
case bytes.HasPrefix(text, []byte(prefix+"[x] ")):
152-
text = append([]byte(`<div class="ui checked fitted disabled checkbox"><input type="checkbox" checked="" disabled="disabled" /><label /></div>`), text[3+len(prefix):]...)
152+
text = append([]byte(`<span class="ui checked fitted disabled checkbox"><input type="checkbox" checked="" disabled="disabled" /><label /></span>`), text[3+len(prefix):]...)
153153
if prefix != "" {
154154
text = bytes.Replace(text, []byte(prefix), []byte{}, 1)
155155
}

0 commit comments

Comments
 (0)