[kramdown-users] Problem with french characters in header ID

Thomas Leitner t_leitner at gmx.at
Mon Dec 3 16:37:15 UTC 2012

On 2012-12-03 12:40 +0100 Benjamin Danon wrote:
> Hi users,
> I use the following header (with accented letters) in a markdown
> file :
> ## évènement
> and the generated HTML is :
> <h2 id="vnement">évènement</h2>
> The expected result is :
> <h2 id="évènement">évènement</h2>

This is intentional because not all characters are allowed in an HTML
ID attribute (see http://www.w3.org/TR/html4/types.html, section 6.2) -
this will probably change with HTML5 but XHTML5 will probably still
need such restricted ID values.

For the rules on how the header IDs are automatically generated, see

Best regards,

More information about the kramdown-users mailing list