Skip to content

Commit

Permalink
fix: markdown parsing error (also parsing might be broken in new files)
Browse files Browse the repository at this point in the history
  • Loading branch information
3rd committed Oct 22, 2023
1 parent e9fd310 commit 1cb60be
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/image/integrations/markdown.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ return document.create_document_integration({
local inlines = parser:children()[inline_lang]
local inline_query = vim.treesitter.query.parse(inline_lang, "(image (link_destination) @url) @image")

if not inlines then return {} end

local images = {}
local function get_inline_images(tree)
local root = tree:root()
Expand Down

0 comments on commit 1cb60be

Please sign in to comment.