Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit bc0e36f

Browse files
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)

AltStyle によって変換されたページ (->オリジナル) /