allow users to specify class attributes for generated links (#331)