*Sigh* I don't know why formatting error appear (blank lines, new lines at wrong places) when I use google groups "code syntax" from the UI... and of course can't edit my dang post... So here's in raw form :
```
local looking_at_section = false
local lvl = 0
local remove = {} -- delete line if 'remove' array not needed
function Block (elem)
if elem.t == "Header" then
-- if elem.classes:includes('remove',1) then
if elem.identifier == 'remove' then
looking_at_section = true
lvl = elem.level
else
looking_at_section = looking_at_section and elem.level > lvl
end
end
if looking_at_section then
remove[#remove + 1] = elem -- delete line if 'remove' array not needed
return {}
end
end
```