diff --git a/lua/neorg/modules/core/export/markdown/module.lua b/lua/neorg/modules/core/export/markdown/module.lua index 9d15d3ba93..28453e237d 100644 --- a/lua/neorg/modules/core/export/markdown/module.lua +++ b/lua/neorg/modules/core/export/markdown/module.lua @@ -612,7 +612,7 @@ module.public = { end, ["ranged_verbatim_tag"] = function(output) - if output[2]:match("^[ \t]+$") then + if output[2] and output[2]:match("^[ \t]+$") then table.remove(output, 2) end