From 9d342ccfba41416d8565f01500884e79881f513e Mon Sep 17 00:00:00 2001 From: arvinxx Date: Thu, 20 Jun 2024 01:27:18 +0800 Subject: [PATCH] :bug: fix: fix markdown --- src/Markdown/style.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Markdown/style.ts b/src/Markdown/style.ts index 23d7dafb..9732dc2e 100644 --- a/src/Markdown/style.ts +++ b/src/Markdown/style.ts @@ -21,6 +21,11 @@ export const useStyles = createStyles( margin-block: ${marginMultiple * -0.75}em; + /* 解决只有一个子节点时高度坍缩的问题 */ + :only-child { + margin-block: 0; + } + ol, ul { li {