title: Custom latex handler for fenced div blocks in bookdown
body: <p>I'd like to use fenced divs in a large bookdown project to create numbered environments like Theorem, Example, etc.  Bookdown's built-in code blocks to do this aren't sufficient, since they can't have R code blocks inside of them and also interfere with RStudio syntax highlighting.<br />
  Fenced divs have a lighter syntax and work really well for me.</p>
  <p>I can do this:</p>
  <pre><code>::: {.example #funexample}
  Here is an example
  :::
  </code></pre>
  <p>Bookdown automatically calls the lua-filter <code>latex-div.lua</code> by Lesur, Derview, and Xie on these blocks.  I've modified this filter to handle latex labels properly, and plan to continue to customize it.  I can use my new filter with the following in <code>output.yml</code>:</p>
  <pre><code>  pandoc_args:
      - --lua-filter=latex-fenced-blocks.lua
  </code></pre>
  <p>However, it appears that the <code>latex-div.lua</code> filter is hardwired into the <code>pandoc</code> command that bookdown uses to generate latex.  Is there a way to tell bookdown I do <em>not</em> want it to use the <code>latex-div.lua</code> filter?</p>
  <p>The <code>pandoc_args</code> seems to only allow for adding arguments to pandoc, not removing them.</p>