Skip to content

Commit 06f3559

Browse files
committed
Skip null bulletlist too
1 parent d46ea5f commit 06f3559

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

scripts/skip-blocks.lua

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ local pandoc = _G.pandoc
77

88
local COMMENT = false
99

10+
local List = require("pandoc.List")
11+
1012
function Blocks(blocks)
1113
for i = #blocks - 1, 1, -1 do
1214
if blocks[i].t == "Null" then
@@ -71,6 +73,13 @@ function OrderedList(el)
7173
return el
7274
end
7375

76+
function BulletList(el)
77+
if COMMENT == true then
78+
return pandoc.Null()
79+
end
80+
return el
81+
end
82+
7483
function LineBlock(el)
7584
if COMMENT == true then
7685
return pandoc.Null()

0 commit comments

Comments
 (0)