From 0922815837a374bd0b2a3cf0477b54e6668e133d Mon Sep 17 00:00:00 2001 From: Vhyrro Date: Thu, 5 Jan 2023 16:50:35 +0100 Subject: [PATCH] fix(core.export): incorrect exporting of code blocks with no parameters (#701) --- lua/neorg/modules/core/export/markdown/module.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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,