aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/less/_markdown.less
diff options
context:
space:
mode:
authorAlexander Scheel <alexander.m.scheel@gmail.com>2020-03-08 15:17:03 -0400
committerGitHub <noreply@github.com>2020-03-08 21:17:03 +0200
commitb8551f8532ef7b98cdd8522440b3ff20f39b49f5 (patch)
treee7ab261599ad4d6dbee947618d57ee69fc84da15 /web_src/less/_markdown.less
parent33c5e5e7fa8ace0f8921b600736f126d752aa0ef (diff)
downloadgitea-b8551f8532ef7b98cdd8522440b3ff20f39b49f5.tar.gz
gitea-b8551f8532ef7b98cdd8522440b3ff20f39b49f5.zip
Fix task-list checkbox styling (#10668)
* Fix task-list checkbox styling The pandoc renderer will append the class "task-list" to the ul element wrapping a li with one or more check-boxes. This allows us to select for them, removing their list-style-type property. However, goldmark and the gfm spec doesn't specify the "task-list" class name, so we can't use that to fix the issue there. Signed-off-by: Alexander Scheel <alexander.m.scheel@gmail.com> * Update to goldmark v1.1.25 This version adds the missing space after a checkbox. Resolves: #9656 Signed-off-by: Alexander Scheel <alexander.m.scheel@gmail.com> Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'web_src/less/_markdown.less')
-rw-r--r--web_src/less/_markdown.less5
1 files changed, 5 insertions, 0 deletions
diff --git a/web_src/less/_markdown.less b/web_src/less/_markdown.less
index cb2ce32c3e..78a0d3a158 100644
--- a/web_src/less/_markdown.less
+++ b/web_src/less/_markdown.less
@@ -192,6 +192,11 @@
list-style-type: none;
}
+ ul.task-list,
+ ol.task-list {
+ list-style-type: none;
+ }
+
ul ul,
ul ol,
ol ol,