-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Breaking changes in 1.1 #4
Comments
Thanks @revin! The introduced changes were trying to fix a bug in github-slugger, which can be seen is this heading as slugged by GitHub: https://github.com/wooorm/gh-and-npm-slug-generation#Привет-non-latin-你好, unfortunately, it seems to be too loose. Now I’m wondering what exact characters are allowed by GH in slugs; white space and punctuation, and emoji? Thoughts? |
Apologies @revin! If we need to revert and/or redo this I'm fine with it! |
GitHub says they use vmg/redcarpet (which is mostly C code) to do the markdown rendering. So the answers should be there, or at least that's the first place I plan on looking when I get a chance. |
There’s also I’ve included the input/output from |
That might do it. I was reading through https://github.com/vmg/redcarpet/blob/master/ext/redcarpet/html.c#L273-L322 and now have a bunch of tabs open to see what the unicode support situation is on C's standard library functions. 😕 |
Hello! Greenkeeper just notified me that github-slugger 1.1 broke npm/marky-markdown; the issue is that in 1.0, unicode emoji characters in headings were being stripped out, but now they're being converted to HTML entities.
For example, given
## 😄-😄 unicode hyphen unicode
:--unicode-hyphen-unicode
😄-😄-unicode-hyphen-unicode
...which has broken a handful of our tests. Is there a way to get the old behavior? Thanks! 👍
The text was updated successfully, but these errors were encountered: