diff --git a/lib/jekyll/tagging.rb b/lib/jekyll/tagging.rb index 2637751..24af8c8 100644 --- a/lib/jekyll/tagging.rb +++ b/lib/jekyll/tagging.rb @@ -12,7 +12,7 @@ module Helpers # Substitutes any diacritics in _str_ with their ASCII equivalents, # whitespaces with dashes and converts _str_ to downcase. def jekyll_tagging_slug(str) - str.to_s.replace_diacritics.downcase.gsub(/\s/, '-') + Jekyll::Utils::slugify(str.to_s, mode: 'latin', cased: true) end end