Skip to content

Commit bc0e36f

Browse files
committed
Should ignore image
1 parent 0a00b3a commit bc0e36f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test/AutolinkTest.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,20 @@ public function testTrailingParenthesis(): void
453453
);
454454
}
455455

456+
public function testIgnoreImages(): void
457+
{
458+
$txt = <<<HTML
459+
Should ignore image: <img src="https://example.com/foo.jpg" width="100" alt="foo" />
460+
HTML;
461+
462+
$html = $this->instance->convert($txt);
463+
464+
assertEquals(
465+
'Should ignore image: <img src="https://example.com/foo.jpg" width="100" alt="foo" />',
466+
$html,
467+
);
468+
}
469+
456470
/**
457471
* urlProvider
458472
*

0 commit comments

Comments
 (0)