From d1a0ed2d9e9bb5afc884b5c12823c2b35fb9ebe5 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 23 Apr 2021 00:47:48 +0800 Subject: [PATCH] style: Fix markdown style preview. --- src/styles/markdown.less | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/styles/markdown.less b/src/styles/markdown.less index 7270789c..5995059f 100644 --- a/src/styles/markdown.less +++ b/src/styles/markdown.less @@ -55,6 +55,9 @@ input { vertical-align: middle; margin: 0 .2em .25em -1.6em; + & + p { + display: inline; + } } h1, h2 { border-bottom: 1px solid #eaecef; @@ -86,6 +89,9 @@ } ol, ul { padding-left: 2em; + & > p { + margin-bottom: 0; + } } ul { margin-bottom: 16px;