showdownjs / showdown

A bidirectional Markdown to HTML to Markdown converter written in Javascript

Home Page:http://www.showdownjs.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Strip more international punctuation characters from header ids in `ghCompatibleHeaderId` mode

tunetheweb opened this issue · comments

GitHub currently strips the following extended punctuation characters when creating headers in markdown files, but Showdown does not.

Evidence in this gist: https://gist.github.com/tunetheweb/ecbfed99663425a668748770568bdafb#some-header-with--chars

Seems an easy enough fix to add these so will submit a PR.

Hey.

Do you mean GitHub strips these characters from ids?

Correct. If you look at that gist example (markdown gists automatically creates ids) you see it:

image

Thank you. Will be merging the PR.