© Thomas Mailund 2019
T. MailundIntroducing Markdown and Pandochttps://doi.org/10.1007/978-1-4842-5149-2_11

11. Filters

Thomas Mailund1 
(1)
Aarhus N, Denmark
 

Filters let you manipulate your documents similarly to preprocessors. Unlike preprocessors, they do not modify the text before Pandoc gets hold of it, but instead, they are plugged into the text transformation that Pandoc does. Think of them as post-processors; it is not far from the truth except that Pandoc will run after they are done.

Both preprocessors and filters have strength and weaknesses. They can do the same things to your files, but some things are easier to program in a preprocessor, while some things are easier to program in a filter.

Pandoc can read from standard input and output ...

Get Introducing Markdown and Pandoc: Using Markup Language and Document Converter now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.