This filter removes Div elements from the output of specified
formats.
Example:
::: {exclude-format='latex beamer'}
This text was produced with Pandoc.
:::
```{=latex}
This text was produced with Pandoc and \LaTeX{}.
```
Multiple formats can be seperated with comma (",") or spaces.
Pass the filter to pandoc via the --lua-filter (or -L) command
line option.
pandoc --lua-filter exclude-format.lua ...
Use pandoc_args to invoke the filter. See the R Markdown
Cookbook
for details.
---
output:
word_document:
pandoc_args: ['--lua-filter=exclude-format.lua']
---This pandoc Lua filter is published under the MIT license, see
file LICENSE for details.