summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEthan Koenig <etk39@cornell.edu>2017-05-12 03:52:45 -0400
committerBo-Yi Wu <appleboy.tw@gmail.com>2017-05-12 15:52:45 +0800
commit5ca3046da6c48723a8b67876ba4d3aa5cb59fc77 (patch)
treef7b1be66ddc5a33c5eff9d21643bb8566f3852e9
parent2cf80f4b1884e3d52ed9c7b83818b42e22e1d7ec (diff)
downloadgitea-5ca3046da6c48723a8b67876ba4d3aa5cb59fc77.tar.gz
gitea-5ca3046da6c48723a8b67876ba4d3aa5cb59fc77.zip
Fix rendering of issue checkboxes (#1709)
-rw-r--r--modules/markdown/markdown.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/markdown/markdown.go b/modules/markdown/markdown.go
index 8f68c5516c..1f890cc822 100644
--- a/modules/markdown/markdown.go
+++ b/modules/markdown/markdown.go
@@ -144,12 +144,12 @@ func (r *Renderer) ListItem(out *bytes.Buffer, text []byte, flags int) {
}
switch {
case bytes.HasPrefix(text, []byte(prefix+"[ ] ")):
- text = append([]byte(`<div class="ui fitted disabled checkbox"><input type="checkbox" disabled="disabled" /><label /></div>`), text[3+len(prefix):]...)
+ text = append([]byte(`<span class="ui fitted disabled checkbox"><input type="checkbox" disabled="disabled" /><label /></span>`), text[3+len(prefix):]...)
if prefix != "" {
text = bytes.Replace(text, []byte(prefix), []byte{}, 1)
}
case bytes.HasPrefix(text, []byte(prefix+"[x] ")):
- text = append([]byte(`<div class="ui checked fitted disabled checkbox"><input type="checkbox" checked="" disabled="disabled" /><label /></div>`), text[3+len(prefix):]...)
+ text = append([]byte(`<span class="ui checked fitted disabled checkbox"><input type="checkbox" checked="" disabled="disabled" /><label /></span>`), text[3+len(prefix):]...)
if prefix != "" {
text = bytes.Replace(text, []byte(prefix), []byte{}, 1)
}