From 567cd562e4df98409d08f46a40c080f538ab5643 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 28 Jun 2025 01:33:19 +0200 Subject: [PATCH] Fix rendering complex markdown headers. --- profiler/src/profiler/TracyLlmMarkdown.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/profiler/src/profiler/TracyLlmMarkdown.hpp b/profiler/src/profiler/TracyLlmMarkdown.hpp index 6b1f035a..a0702d5c 100644 --- a/profiler/src/profiler/TracyLlmMarkdown.hpp +++ b/profiler/src/profiler/TracyLlmMarkdown.hpp @@ -74,6 +74,7 @@ public: case MD_BLOCK_H: Separate(); header = ((MD_BLOCK_H_DETAIL*)detail)->level; + glue = false; break; case MD_BLOCK_CODE: { @@ -177,7 +178,7 @@ public: { if( header > 0 ) { - if( !first ) ImGui::Dummy( ImVec2( 0, ImGui::GetTextLineHeight() * 0.5f ) ); + if( !first && !glue ) ImGui::Dummy( ImVec2( 0, ImGui::GetTextLineHeight() * 0.5f ) ); ImGui::PushFont( g_fonts.big ); } else if( bold > 0 )