This is a collection of filters I run as part of a packaging script for research papers. Basically makes modifications to standard Chicago Style to match the citation standards of the BC STM. Note, that especially for things like the encyclicals, this relies on working in concert with carefully formatted bibliography data.
Anything starting with filter-
gets put into the pandoc invocation before --citeproc
; anything starting with post-filter
gets put after.
I'm sure a lot of this code could be improved. :)