From 1fd8e89df2d2b02409a20c227d9a8ad49a62354c Mon Sep 17 00:00:00 2001 From: Danilo Leal Date: Sun, 14 Jun 2026 13:33:20 +0200 Subject: [PATCH 1/2] Improve heading space --- crates/markdown/src/markdown.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/markdown/src/markdown.rs b/crates/markdown/src/markdown.rs index 99b3fd20118eb2..dfac393eb31e07 100644 --- a/crates/markdown/src/markdown.rs +++ b/crates/markdown/src/markdown.rs @@ -2763,6 +2763,11 @@ fn apply_heading_style( pulldown_cmark::HeadingLevel::H6 => heading.text_sm(), }; + heading = match level { + pulldown_cmark::HeadingLevel::H1 => heading, + _ => heading.mt_6(), + }; + if let Some(border_color) = border_color && matches!( level, From cbc5502ccc6fbb4d39e4548efb7b57eb71aa1612 Mon Sep 17 00:00:00 2001 From: Danilo Leal Date: Sun, 14 Jun 2026 13:34:20 +0200 Subject: [PATCH 2/2] Make link inline code be accentuated as well --- crates/markdown/src/markdown.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/markdown/src/markdown.rs b/crates/markdown/src/markdown.rs index dfac393eb31e07..464a6e757fc196 100644 --- a/crates/markdown/src/markdown.rs +++ b/crates/markdown/src/markdown.rs @@ -1311,7 +1311,11 @@ impl MarkdownElement { builder.pop_text_style(); builder.pop_text_style(); } else { - builder.push_text_style(self.style.inline_code.clone()); + let mut code_style = self.style.inline_code.clone(); + if builder.link_depth > 0 { + code_style.color = self.style.link.color.or(code_style.color); + } + builder.push_text_style(code_style); builder.push_text(text, range); builder.pop_text_style(); }