set scalariformat hook, and made it work.