summaryrefslogtreecommitdiffstats
path: root/web_src/less/_markdown.less
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-05-11 00:14:49 +0100
committerGitHub <noreply@github.com>2020-05-11 00:14:49 +0100
commit742e26f5a5dab8768558231cb88801911b9abaa7 (patch)
tree503132c419de71a164f8e8dd236e6146f8f4b7b6 /web_src/less/_markdown.less
parentc9187b81164757c67a0f83ef34b001f7d38c264a (diff)
downloadgitea-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 'web_src/less/_markdown.less')
-rw-r--r--web_src/less/_markdown.less4
1 files changed, 2 insertions, 2 deletions
diff --git a/web_src/less/_markdown.less b/web_src/less/_markdown.less
index da542432d7..651edb5724 100644
--- a/web_src/less/_markdown.less
+++ b/web_src/less/_markdown.less
@@ -192,9 +192,9 @@
list-style-type: none;
}
- ul.task-list,
- ol.task-list {
+ li.task-list-item {
list-style-type: none;
+ margin-left: calc(-2em + 2px);
}
ul ul,