mirror of
https://github.com/mark3labs/kit.git
synced 2026-06-14 03:30:26 +00:00
50e7b78c33
Herald's codeBlockWithLineNumbers() hardcodes PaddingTop(1) and PaddingBottom(1), adding invisible blank lines with background color above and below the code content. These padding lines occupy line indices in the rendered item but are visually indistinguishable from empty space, causing mouse click coordinates to map to the wrong content line (consistently 1 row off in tool output blocks). Strip the padding lines after CodeBlock rendering since the Compose separator above and Figure caption below already provide adequate visual spacing.