Skip to content

Commit 7f0143e

Browse files
fix: additional check for table rows after parsing
1 parent 48a52dd commit 7f0143e

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
- roll own type validation to remove vim.validate [d69a885](https://github.com/MeanderingProgrammer/render-markdown.nvim/commit/d69a885e1bf21cb329d2eafe56fd80b6de627216)
1111
- code block language icon from extension [#233](https://github.com/MeanderingProgrammer/render-markdown.nvim/issues/233)
1212
[78a2eb7](https://github.com/MeanderingProgrammer/render-markdown.nvim/commit/78a2eb7fc273f36790aa390262f390a3265eedff)
13+
- log_level off [#235](https://github.com/MeanderingProgrammer/render-markdown.nvim/issues/235)
14+
[48a52dd](https://github.com/MeanderingProgrammer/render-markdown.nvim/commit/48a52dd5c847c59eac6ae5b96ff0123acd1a394d)
1315

1416
### Bug Fixes
1517

lua/render-markdown/health.lua

+1-1
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.5.6'
7+
M.version = '7.5.7'
88

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

lua/render-markdown/render/table.lua

+5
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ function Render:setup()
7676
end
7777
end
7878

79+
-- Double check rows still exist after parsing
80+
if #rows == 0 then
81+
return false
82+
end
83+
7984
-- Store the max width in the delimiter
8085
for _, row in ipairs(rows) do
8186
for i, column in ipairs(row.columns) do

0 commit comments

Comments
 (0)