From da287c8a38560ff1fa7259f3e6221e21e4eb38e8 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Mon, 25 Oct 2021 12:49:44 +0800 Subject: [PATCH] fix markdown checkbox rendering --- web_src/less/markup/content.less | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/web_src/less/markup/content.less b/web_src/less/markup/content.less index 1678ff0fa7ab1..a21c44df16d91 100644 --- a/web_src/less/markup/content.less +++ b/web_src/less/markup/content.less @@ -159,12 +159,18 @@ .task-list-item { list-style-type: none; position: relative; + line-height: 1.5rem; + min-height: 1.5rem; // to render a checkbox list without content `- [ ]`, we need this min-height to make sure the
  • can be visible input[type="checkbox"] { position: absolute; top: .25em; left: -1.6em; } + + p { + line-height: 1.5rem; + } } .task-list-item + .task-list-item {