mirror of
https://github.com/simonmichael/hledger.git
synced 2024-12-27 12:24:43 +03:00
da6718806a
[ci skip]
8 lines
290 B
Lua
8 lines
290 B
Lua
-- Remove a $TOC$ marker (cf pandoc-toc.lua) from the document.
|
|
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
|