-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
Hyperlinks containing underscores are processed as italics #1501
Hyperlinks containing underscores are processed as italics #1501
Comments
yeah i get that as well with Ghost 0.3.3 |
Added failing unit test in 03cd7b7 |
I believe I have fixed this issue in 03cd7b7, unit tests now passing. |
Looks like my fix is only affecting published posts, not the Preview pane (unless I'm missing something). |
Yea I can confirm that it does not fix the preview pane. I'm looking into this as we speak. The problem is that editor.js only filters out image tags, it isn't set up to allow multiple regexes, checks and removals. It works by using a mark scheme. I'll take a look at making a nice abstract factory structure to allow links and future enhancements to be made easily. The only problem i'm having though is having to constantly run grunt tasks to concatenate the .js files. Is there an easy way to keep the server running and have js files compiled together? /cc @ErisDS |
@b1nd Please note that all of the editor bugs are currently scheduled for Milestone 0.7 - we have a big project planned to rebuild the editor in that release. You're welcome to work on it in the meantime, but all 0.4.1 and 0.5 PRs have priority. |
Thanks Hannah! Just noticed #1909 and thought this was the case. |
It appears this may be an issue with showdown. The showdownjs/showdown#83 PR does seem to correct the issue that @evanwon was seeing on the preview pane. |
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
refs TryGhost/Admin#690, closes #1501, closes #2093, closes #4592, closes #4627, closes #4659, closes #5039, closes #5237, closes #5587, closes #5625, closes #5632, closes #5822, closes #5939, closes #6840, closes #7183, closes #7536 - replace custom showdown fork with markdown-it - swaps showdown for markdown-it when rendering markdown - match existing header ID behaviour - allow headers without a space after the #s - add duplicate header ID handling - remove legacy markdown spec - move markdown-it setup into markdown-converter util - update mobiledoc specs to match markdown-it newline behaviour - update data-generator HTML to match markdown-it newline behaviour - fix Post "converts html to plaintext" test - update rss spec to match markdown-it newline behaviour - close almost all related showdown bugs
Hyperlinks that contain matched pairs of underscores are converted to italics, which breaks the hyperlink. This affects both the Live Preview editor and published content.
Ghost Version: 0.3.3
Example
Enter the following URL in the Ghost editor:
Expected HTML output
Actual HTML output
The text was updated successfully, but these errors were encountered: