A while back I remember someone posting quite a complex Lua filter which did a bunch of formatting for Society of Biblical Literature style, including formatting scriptural references and modifying the default output of the SBL CSL style. I can't seem to find a link to the repository though and wondered if anyone else can point me towards it?