diff --git a/src/Entities.php b/src/Entities.php index c5ba5db..8d3f0d7 100644 --- a/src/Entities.php +++ b/src/Entities.php @@ -376,7 +376,7 @@ final class Entities 'italic' => '', 'code' => '', 'pre' => isset($entity['language']) && $entity['language'] !== '' ? '
' : '
',
-                'text_link' => '',
+                'text_link' => '',
                 'strikethrough' => '',
                 "underline" => '',
                 "block_quote" => '
', diff --git a/tests/EntitiesTest.php b/tests/EntitiesTest.php index 91ec175..6922d62 100644 --- a/tests/EntitiesTest.php +++ b/tests/EntitiesTest.php @@ -293,6 +293,18 @@ class EntitiesTest extends TestCase ]] ]; + yield [ + 'test', + 'test', + 'test', + [[ + 'type' => 'text_link', + 'offset' => 0, + 'length' => 4, + 'url' => 'https://google.com/?arg=a&arg2=b', + ]] + ]; + yield [ 'test', 'test', @@ -787,17 +799,17 @@ class EntitiesTest extends TestCase ], [ 'html', - 'link ', + 'link ', 'link', [ [ 'offset' => 0, 'length' => 4, 'type' => 'text_link', - 'url' => 'https://google.com/', + 'url' => 'https://google.com/?a=a&b=b', ], ], - 'link ', + 'link ', ], [ 'markdown',