diff --git a/lua/neorg/modules/core/export/markdown/module.lua b/lua/neorg/modules/core/export/markdown/module.lua index cb06e484c..c62babae2 100644 --- a/lua/neorg/modules/core/export/markdown/module.lua +++ b/lua/neorg/modules/core/export/markdown/module.lua @@ -574,7 +574,10 @@ module.public = { end, ["ranged_verbatim_tag"] = function(output) - table.remove(output, 2) + if output[2]:match("^[ \t]+$") then + table.remove(output, 2) + end + return output end,