Skip to content

Commit

Permalink
fix(export.markdown): fix error on unexported verbatim tags without p…
Browse files Browse the repository at this point in the history
…arameters (nvim-neorg#1280)

fixes nvim-neorg#1277
  • Loading branch information
ALVAROPING1 authored and benlubas committed Feb 6, 2024
1 parent 62c0a81 commit 3f02c48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/neorg/modules/core/export/markdown/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3f02c48

Please sign in to comment.