From 5fe8fee93391d20405e3f5d0577b39f67278f68a Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Fri, 11 Aug 2017 10:32:26 +0800 Subject: [PATCH] back port from #1709 (#2291) Signed-off-by: Bo-Yi Wu --- modules/markdown/markdown.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/markdown/markdown.go b/modules/markdown/markdown.go index a37e7aa6c..489582b19 100644 --- a/modules/markdown/markdown.go +++ b/modules/markdown/markdown.go @@ -155,12 +155,12 @@ func (r *Renderer) ListItem(out *bytes.Buffer, text []byte, flags int) { } switch { case bytes.HasPrefix(text, []byte(prefix+"[ ] ")): - text = append([]byte(`
`), text[3+len(prefix):]...) + text = append([]byte(``), text[3+len(prefix):]...) if prefix != "" { text = bytes.Replace(text, []byte(prefix), []byte{}, 1) } case bytes.HasPrefix(text, []byte(prefix+"[x] ")): - text = append([]byte(`
`), text[3+len(prefix):]...) + text = append([]byte(``), text[3+len(prefix):]...) if prefix != "" { text = bytes.Replace(text, []byte(prefix), []byte{}, 1) }