allow blank list elements

ft.font-size
Manuel Genovés 2019-01-26 20:22:48 +01:00
parent 424bb7f8f4
commit 3375349d6b
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ end
--- Replace the todo marker in the given block, if any.
function M.replace_todo_markers (blk, format)
if blk.t ~= 'Para' and blk.t ~= 'Plain' then
if not blk or blk.t ~= 'Para' and blk.t ~= 'Plain' then
return blk
end
local inlines = blk.content