diff --git a/index.compiler.spec.tsx b/index.compiler.spec.tsx index e6a83e67..62659462 100644 --- a/index.compiler.spec.tsx +++ b/index.compiler.spec.tsx @@ -830,6 +830,22 @@ describe('images', () => {

`) }) + + it('should handle an image inside a link', () => { + render( + compiler( + `[![youtubeImg](https://www.gstatic.com/youtube/img/promos/growth/ytp_lp2_logo_phone_landscape_300x44.png)](https://www.youtube.com/)` + ) + ) + + expect(root.innerHTML).toMatchInlineSnapshot(` + + youtubeImg + + `) + }) }) describe('links', () => {