February 20, 2019

How to Use Pandoc Filters for Advanced Customisation of Your R Markdown Documents

In a package I’m developing, I had a problem around highlighting text in LaTeX and HTML output. The solution I found involved using pandoc filters to take full control over the final document. Here’s a guide to writing such filters when R Markdown ain’t got what you need.