permalinks icon indicating copy to clipboard operation
permalinks copied to clipboard

Handle accents

Open kud opened this issue 9 years ago • 2 comments

http://diary.kud.io/fr/p-dagogie-de-l-int-r-t-de-toujours-donner-3-exemples/

The url/folder removes all the accents and replaces them by "-".

kud avatar Nov 20 '15 09:11 kud

Issue can be closed. test/index.js contains an example of how to achieve this by passing option slug: require('transliteration').slugify. @woodyrew is it not worth including this support in the plugin by default, given that 3 issues have been raised already & a PR been made (cf. #50 #63 #64) ?

webketje avatar Sep 06 '20 17:09 webketje

@webketje We could but it would need to be a major release as this wouldn't be backwards compatible. This was the main reason for not switching before. The readme could be more clear if we didn't want to switch.

woodyrew avatar Sep 07 '20 17:09 woodyrew

Actually, a newly added test revealed this issue has already been solved (at least for Western letters, not Chinese for example) with the additions in the charmap.json of slugify: https://github.com/simov/slugify.

webketje avatar Oct 15 '23 00:10 webketje