Fixing pandoc mangling classes in generated indexes'