Skip to content

Commit d24673b

Browse files
MaxDillonokuuva
authored andcommitted
fix(table): prevent early return; enable wrapping when unrendered text is too long
1 parent 6016b84 commit d24673b

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
@@ -204,11 +204,6 @@ function Render:compute_layout()
204204
total_natural = total_natural + w
205205
end
206206

207-
-- Table already fits; use existing renderer
208-
if total_natural <= text_budget then
209-
return no_wrap
210-
end
211-
212207
-- Iterative redistribution:
213208
-- Start with an equal share per column. Any column whose content fits
214209
-- within that share gets locked at its natural width, freeing up budget

0 commit comments

Comments
 (0)