Make RazorFormat more extensible to fix #718