Fix rendering complex markdown headers.

This commit is contained in:
Bartosz Taudul
2025-06-28 01:33:19 +02:00
parent b84f1407d4
commit 567cd562e4

View File

@@ -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 )