-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
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
Allow multiple underscores inside a code block #4592
Comments
I upgraded to 0.5.6 and it still reproduces. |
Hi @givanse, thanks for raising this. The issue you linked to shows that the code to process multiple underscores doesn't take code blocks into account. It should be relatively straightforward to either wrap the code in blocks which filter out code first, or move this code block into the 'GFM' block which already has this. You can see what I mean here: https://github.com/TryGhost/Ghost/blob/master/core/shared/lib/showdown/extensions/ghostgfm.js#L34 |
closes TryGhost#5039, TryGhost#5028, TryGhost#4659, TryGhost#4627, TryGhost#4592, TryGhost#1501 This PR pulls in the new version of showdown + adds and updates some tests to show what has changed - Lots of additional whitespaces caused by a bad implementation of GFM newlines have been removed - One fix with newlines + pre tags is now undone, but is now closer to all other markdown handlers
closes TryGhost#5039, TryGhost#5028, TryGhost#4659, TryGhost#4627, TryGhost#4592, TryGhost#1501 This PR pulls in the new version of showdown + adds and updates some tests to show what has changed - Lots of additional whitespaces caused by a bad implementation of GFM newlines have been removed - One fix with newlines + pre tags is now undone, but is now closer to all other markdown handlers
closes TryGhost#5039, TryGhost#5028, TryGhost#4659, TryGhost#4627, TryGhost#4592, TryGhost#1501 This PR pulls in the new version of showdown + adds and updates some tests to show what has changed - Lots of additional whitespaces caused by a bad implementation of GFM newlines have been removed - One fix with newlines + pre tags is now undone, but is now closer to all other markdown handlers
closes TryGhost#5039, TryGhost#5028, TryGhost#4659, TryGhost#4627, TryGhost#4592, TryGhost#1501 This PR pulls in the new version of showdown + adds and updates some tests to show what has changed - Lots of additional whitespaces caused by a bad implementation of GFM newlines have been removed - One fix with newlines + pre tags is now undone, but is now closer to all other markdown handlers
closes TryGhost#5039, TryGhost#5028, TryGhost#4659, TryGhost#4627, TryGhost#4592, TryGhost#1501 This PR pulls in the new version of showdown + adds and updates some tests to show what has changed - Lots of additional whitespaces caused by a bad implementation of GFM newlines have been removed - One fix with newlines + pre tags is now undone, but is now closer to all other markdown handlers
closes TryGhost#5039, TryGhost#5028, TryGhost#4659, TryGhost#4627, TryGhost#4592, TryGhost#1501 This PR pulls in the new version of showdown + adds and updates some tests to show what has changed - Lots of additional whitespaces caused by a bad implementation of GFM newlines have been removed - One fix with newlines + pre tags is now undone, but is now closer to all other markdown handlers
To make sure I understand this issue, is what's happening such as below:
Displays as The only way I've found to overcome that is to escape the first underscore. E.g.
Also, wouldn't it be a dupe of #1501 |
If I do this indside a code block:
The output is:
Might be related: #1552
The text was updated successfully, but these errors were encountered: