Skip to content

Commit 3f57a77

Browse files
committed
fix(table): prevent early return; enable wrapping when unrendered text is too long
1 parent fba23bd commit 3f57a77

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

lua/render-markdown/render/markdown/table.lua

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -191,11 +191,6 @@ function Render:compute_layout()
191191
total_natural = total_natural + w
192192
end
193193

194-
-- Table already fits; use existing renderer
195-
if total_natural <= text_budget then
196-
return no_wrap
197-
end
198-
199194
-- Iterative redistribution:
200195
-- Start with an equal share per column. Any column whose content fits
201196
-- within that share gets locked at its natural width, freeing up budget

0 commit comments

Comments
 (0)