-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
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
Making highlight
behave more like redcarpet
#2511
Conversation
See issue 2510 for details.
LGTM! |
@mattr- / @benbalter ? |
@parkr Nobody answered me about that |
Sorry! It looked fine to me ( |
According to this StackOverflow question, essentially all non-whitespace chars are valid (they might just need escaping). It just seemed odd to me to explicity change In my opinion, I believe it is best for the users if both Jekyll and redcarpet agree on the output. Either both of them escape/replace equally, or none of them do it. For simplicity, I'd stick to the later. Your call. :) (BTW, you may also want to close #2510.) |
Not that having changed class names from Nothing to fix after for this comment but I ask to avoid breaking retrocompatibility on minor versions next time to prevent a time investigating what happened. |
@leobalter We do our best. |
Sure, and Jekyll is a great tool! I'm sorry if was tough. |
See issue #2510 for details.
Note: redcarpet does not escape the class name (like Jekyll does).
This means that
c++
in redcarpet generatesclass="language-c++"
, while in Jekyll will bec--
. Should I also remove thisgsub("+", "-")
call, so that both generate the same code? And why is it here anyway?