Seperate pandoc filter code from default.rb.