hakimel / reveal.js

The HTML Presentation Framework
https://revealjs.com
MIT License
67.59k stars 16.63k forks source link

URL encoding #1714

Open JOduMonT opened 7 years ago

JOduMonT commented 7 years ago

Hi Hakim; it's not a big deal and i'm not sure we could call that an issue but I try to use French Word with accent into

section id="Vérité"

without success..
I tried all those variante too

section id="V%C3%A9rit%C3%A9" section id="V%E9rit%E9" section id="Vérité" section id="Vérité"

I'd follow and try what they explain here http://www.w3schools.com/tags/ref_urlencode.asp and Firefox and Chrome don't convert it.

Do you know why and/or how to do it ? :)

Congrats for your nice works!

jdalton commented 7 years ago

Something like Lodash's _.deburr may help (available as a standalone pkg too)

_.deburr('Vérité')
// => "Verite"
majuscule commented 7 years ago

Alternatively, punycode is arguably more "correct" handling, though less user friendly.