Uses `add_filter` in docgen
It would be better to explicitly run Pandoc once to get an AST, modify that, and then run Pandoc a second time to produce typeset output. This would allow us to no use add_filter
or wait for rust_pandoc
upstream to merge changes to have it support closures.