Skip to content

robertbachmann/exclude-format

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Exclude-Format filter

GitHub build status

Usage

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.

Plain pandoc

Pass the filter to pandoc via the --lua-filter (or -L) command line option.

pandoc --lua-filter exclude-format.lua ...

R Markdown

Use pandoc_args to invoke the filter. See the R Markdown Cookbook for details.

---
output:
  word_document:
    pandoc_args: ['--lua-filter=exclude-format.lua']
---

License

This pandoc Lua filter is published under the MIT license, see file LICENSE for details.

About

pandoc filter: Keeps parts of a document out of selected output formats.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published