From 3d19f62fb4c753cf0f5a85b58e1200e6107bcce8 Mon Sep 17 00:00:00 2001 From: xfy Date: Wed, 3 Jun 2026 16:18:24 +0800 Subject: [PATCH] fix: prevent syntax-highlighted spans from being displayed as block due to Tailwind .block class conflict --- input.css | 5 +++++ src/api/posts.rs | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/input.css b/input.css index b0319ee..ca307f9 100644 --- a/input.css +++ b/input.css @@ -358,6 +358,11 @@ line-height: 1.6; } + /* Reset display for syntax-highlighted spans to prevent Tailwind .block conflict */ + .md-content pre code span { + display: inline !important; + } + /* Copy Code Button */ .copy-code { display: none; diff --git a/src/api/posts.rs b/src/api/posts.rs index 33b5fa4..7deedc3 100644 --- a/src/api/posts.rs +++ b/src/api/posts.rs @@ -1373,4 +1373,4 @@ pub async fn search_posts(query: String) -> Result