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( + `[](https://www.youtube.com/)` + ) + ) + + expect(root.innerHTML).toMatchInlineSnapshot(` + +