diff options
author | zeripath <art27@cantab.net> | 2020-05-11 00:14:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-11 00:14:49 +0100 |
commit | 742e26f5a5dab8768558231cb88801911b9abaa7 (patch) | |
tree | 503132c419de71a164f8e8dd236e6146f8f4b7b6 /modules/markup/markdown/markdown_test.go | |
parent | c9187b81164757c67a0f83ef34b001f7d38c264a (diff) | |
download | gitea-742e26f5a5dab8768558231cb88801911b9abaa7.tar.gz gitea-742e26f5a5dab8768558231cb88801911b9abaa7.zip |
Prevent 500 with badly formed task list (#11328)
Fix #11317
Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'modules/markup/markdown/markdown_test.go')
-rw-r--r-- | modules/markup/markdown/markdown_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/markup/markdown/markdown_test.go b/modules/markup/markdown/markdown_test.go index b9946d7d23..7f27a43a7d 100644 --- a/modules/markup/markdown/markdown_test.go +++ b/modules/markup/markdown/markdown_test.go @@ -141,10 +141,10 @@ func testAnswers(baseURLContent, baseURLImages string) []string { <h2 id="user-content-custom-id">More tests</h2> <p>(from <a href="https://www.markdownguide.org/extended-syntax/" rel="nofollow">https://www.markdownguide.org/extended-syntax/</a>)</p> <h3 id="user-content-checkboxes">Checkboxes</h3> -<ul class="task-list"> -<li><span class="ui checkbox"><input type="checkbox" readonly="readonly"/><label>unchecked</label></span></li> -<li><span class="ui checked checkbox"><input type="checkbox" checked="" readonly="readonly"/><label>checked</label></span></li> -<li><span class="ui checkbox"><input type="checkbox" readonly="readonly"/><label>still unchecked</label></span></li> +<ul> +<li class="task-list-item"><span class="ui checkbox"><input type="checkbox" readonly="readonly"/><label>unchecked</label></span></li> +<li class="task-list-item"><span class="ui checked checkbox"><input type="checkbox" checked="" readonly="readonly"/><label>checked</label></span></li> +<li class="task-list-item"><span class="ui checkbox"><input type="checkbox" readonly="readonly"/><label>still unchecked</label></span></li> </ul> <h3 id="user-content-definition-list">Definition list</h3> <dl> |