From c89e499f96efb186a55ecb71c64b990e1d06536e Mon Sep 17 00:00:00 2001 From: Sma11X <540351143@qq.com> Date: Mon, 18 Mar 2024 19:34:03 +0800 Subject: [PATCH] fix: pre tag overwritten by default style (#2699) --- styles/global.css | 3 +++ 1 file changed, 3 insertions(+) diff --git a/styles/global.css b/styles/global.css index f3482916..29395f2f 100644 --- a/styles/global.css +++ b/styles/global.css @@ -85,6 +85,9 @@ em-emoji-picker { p:last-child { --at-apply: mb-1; } + pre { + --at-apply: whitespace-pre-wrap; + } code { --at-apply: bg-code text-code px1 py0.5 rounded text-0.875em leading-0.8em; }