I need to mimic pandoc's way of turning a header's text into an acceptable id string in a Lua filter: remove special characters, turn spaces into dashes.
Is there a command to sanitize a string that way?
Ex: Les élèves d'hier becomes: les-eleves-dhier