Skip to content

Commit fb51061

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

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -195,11 +195,6 @@ function Render:compute_layout()
195195
total_natural = total_natural + w
196196
end
197197

198-
-- Table already fits; use existing renderer
199-
if total_natural <= text_budget then
200-
return no_wrap
201-
end
202-
203198
-- Iterative redistribution:
204199
-- Start with an equal share per column. Any column whose content fits
205200
-- within that share gets locked at its natural width, freeing up budget

0 commit comments

Comments
 (0)