-
-
Notifications
You must be signed in to change notification settings - Fork 206
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
Make autolinking configurable #188
Make autolinking configurable #188
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.
Overall I think this approach looks great! If could you please update the tests we can go ahead and get this merged :)
tests/HtmlConverterTest.php
Outdated
$result = $markdown('<a href="https://www.google.com">Google</a>'); | ||
$this->assertEquals('[Google](https://www.google.com)', $result); | ||
$result = $markdown('<a href="google.com">google.com</a>'); | ||
$this->assertEquals('[google.com](google.com)', $result); |
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.
Would you mind changing this to use the $this->html_give_markdown()
helper method instead for consistency?
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.
Ah! I totally missed the fact that this method also accepts options. There are so few test cases using it that at a first glance I missed that completely.
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.
Looks good to me! Thanks for the contribution 👍
Feature request #187
use_autolinks
addedfalse
, the short link syntax<url>
will not be used