Add hooks for emitLeading/TrailingFence