better grammarly prep

This commit is contained in:
Jan Kowalczyk
2025-10-18 12:47:16 +02:00
parent 374420727b
commit 5aca00ad67
5 changed files with 59 additions and 5 deletions

View File

@@ -0,0 +1,11 @@
-- 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