hledger/tools/pandoc-drop-toc.lua
2019-02-12 09:58:22 -08:00

7 lines
226 B
Lua

function Para(p)
if not p.content[1] then return p end
if not (p.content[1].t == "Str") then return p end
if not (p.content[1].text == "$TOC$") then return p end
return pandoc.Null()
end