-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Bug/fixes links without http(s) #4155
Bug/fixes links without http(s) #4155
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution @Amorpheuz, in addition to improving the regexp I suggest you add tests about this, being such a crucial part of the rendering process.
You can add specs to https://github.com/thepracticaldev/dev.to/blob/master/spec/labor/markdown_parser_spec.rb which uses this class to render things
What type of PR is this? (check all applicable)
Description
Fix invalid links in article/comments due to absence of http/https
app>lin>redcarpet>render>html_rouge.rb
https://
orhttp://
or isnil
.Related Tickets & Documents
#4101
Added to documentation?
[optional] What gif best describes this PR or how it makes you feel?
Figured out a way to test WSL changes via travis 🎉. After ditching a previous branch, hehe.