Skip to content

Commit 317df87

Browse files
do not render bottom of table when it only has one row
1 parent 29863dc commit 317df87

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212
[965c222](https://github.com/MeanderingProgrammer/render-markdown.nvim/commit/965c222076b2d289ed498730845d533780f3c7c7)
1313
- code language name [#205](https://github.com/MeanderingProgrammer/render-markdown.nvim/issues/205)
1414
[18c7ef7](https://github.com/MeanderingProgrammer/render-markdown.nvim/commit/18c7ef71fb4b8d83cb0160adc9127fc4d65ca42e)
15-
- anti conceal per component [#204](https://github.com/MeanderingProgrammer/render-markdown.nvim/issues/204)
15+
- anti conceal per component per mode [#204](https://github.com/MeanderingProgrammer/render-markdown.nvim/issues/204)
1616
[fb6b3d1](https://github.com/MeanderingProgrammer/render-markdown.nvim/commit/fb6b3d145e5e12b838c0b84124354802f381b1af)
17+
[29863dc](https://github.com/MeanderingProgrammer/render-markdown.nvim/commit/29863dc5262954ea04d76bd564f2f63330b42d7f)
1718
- align table cells according to indicators [c0082b7](https://github.com/MeanderingProgrammer/render-markdown.nvim/commit/c0082b7d9e33408ba4e451741d8aca2b1f5ed823)
1819

1920
### Bug Fixes

lua/render-markdown/health.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ local state = require('render-markdown.state')
44
local M = {}
55

66
---@private
7-
M.version = '7.3.10'
7+
M.version = '7.3.11'
88

99
function M.check()
1010
M.start('version')

lua/render-markdown/render/table.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,9 @@ function Render:full()
368368
end
369369

370370
table_border(first_info, true, { border[1], border[2], border[3] })
371-
table_border(last_info, false, { border[7], border[8], border[9] })
371+
if #rows > 1 then
372+
table_border(last_info, false, { border[7], border[8], border[9] })
373+
end
372374
end
373375

374376
return Render

tests/indent_spec.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ describe('indent.md', function()
6969
util.table_pipe(row:get(), 12, true),
7070
indent(row:increment()),
7171
util.table_delimiter(row:get(), { 5, 5 }),
72-
util.table_border(row:get(), false, { 5, 5 }, 2),
7372
})
7473

7574
vim.list_extend(expected, {

0 commit comments

Comments
 (0)