From 41e8b834afbd0c98a8ab4549a90a6bce0ec7096f Mon Sep 17 00:00:00 2001 From: silverwind Date: Sun, 13 Dec 2020 02:05:50 +0100 Subject: Markdown task list improvements (#13952) * Markdown task list improvements - Remove `.ui` class and wrappers to prevent fomantic from messing with it. - Change rendered HTML to match GitHub. - Add custom styling for the checkboxes. * fix unittest Co-authored-by: Lauris BH Co-authored-by: techknowlogick --- modules/markup/markdown/goldmark.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/markup/markdown/goldmark.go') diff --git a/modules/markup/markdown/goldmark.go b/modules/markup/markdown/goldmark.go index 9447424644..f9fd6eb976 100644 --- a/modules/markup/markdown/goldmark.go +++ b/modules/markup/markdown/goldmark.go @@ -357,9 +357,9 @@ func (r *HTMLRenderer) renderTaskCheckBoxListItem(w util.BufWriter, source []byt } var err error if n.IsChecked { - _, err = w.WriteString(``) + _, err = w.WriteString(``) + _, err = w.WriteString(`\n") + _, _ = w.WriteString("\n") } return ast.WalkContinue, nil } -- cgit v1.2.3