Improve to display long description which has reference links#4444
Improve to display long description which has reference links#4444
Conversation
|
Just so it's stated, let's refrain from merging this until v1.4.0 has landed. |
Agreed 😊 |
php/WP_CLI/DocParser.php
Outdated
| break; | ||
| } | ||
|
|
||
| if ( preg_match_all( '/(\[.+?\]\((https?:\/\/.+?)\))/', $line, $m ) ) { |
There was a problem hiding this comment.
Could we get a plain phpunit test for this too? There's an existing TestDocParser class you can add to.
|
@danielbachhuber I did. 😊 |
|
I changed the order of arguments of
|
|
👍 Looks good to me. Requesting a second review from @gitlost |
|
Looks really nice and works well. A few nitpicks, all ignorable, would be that the regex doesn't need the all-including brackets so could be simplified to (Also overall you could argue that |
Fixes #4336
It will be like following for now.