That worked perfectly -- thanks!
On Saturday, February 9, 2019 at 4:40:19 PM UTC-5, Albert Krewinkel wrote:
Colin McLear writes:
> I would like to be able to put an id like {#ignore} next to any section
> title of arbitrary depth (i.e. h1, h2, etc) and have a lua filter that just
> removes that section for any output. I have a filter that accomplishes this
> for particular headings but for some reason (well, probably because I know
> very little lua) I can't make this work for heading and content. Any ideas
> are appreciated!
Maybe take a look at the abstract-to-meta filter in
<https://github.com/pandoc/lua-filters>. It does something quite
similar, in that it looks for a specific header and removes it
together with all its content from the document body. Only few
changes should be necessary to make it suitable for your
use-case.