Files
mt/thesis/filters/drop-tables.lua

12 lines
349 B
Lua
Raw Permalink Normal View History

2025-10-18 12:19:26 +02:00
-- drop-tables.lua
-- Removes LaTeX tabular and tabularx environments (and their contents).
function RawBlock(el)
if el.format == "tex" then
-- Check for tabular or tabularx environment
if el.text:match("\\begin%s*{%s*tabularx?%s*}") then
return pandoc.Plain({pandoc.Str("[table omitted]")})
end
end
end