12 lines
349 B
Lua
12 lines
349 B
Lua
-- 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
|
|
|