diff --git a/.changeset/beige-otters-sparkle.md b/.changeset/beige-otters-sparkle.md new file mode 100644 index 0000000..808e51f --- /dev/null +++ b/.changeset/beige-otters-sparkle.md @@ -0,0 +1,5 @@ +--- +'@graphcms/rich-text-html-renderer': patch +--- + +fix: add closing tag for iframe diff --git a/packages/html-renderer/src/elements/IFrame.tsx b/packages/html-renderer/src/elements/IFrame.tsx index 846cce5..ed94fd1 100644 --- a/packages/html-renderer/src/elements/IFrame.tsx +++ b/packages/html-renderer/src/elements/IFrame.tsx @@ -26,7 +26,7 @@ export function IFrame({ url }: Partial) { allow="fullscreen" frameBorder="0" referrerPolicy="no-referrer" - /> + > `; } diff --git a/packages/html-renderer/test/index.test.ts b/packages/html-renderer/test/index.test.ts index b112057..f94ff9e 100644 --- a/packages/html-renderer/test/index.test.ts +++ b/packages/html-renderer/test/index.test.ts @@ -181,7 +181,7 @@ describe('@graphcms/rich-text-html-renderer', () => { allow="fullscreen" frameBorder="0" referrerPolicy="no-referrer" - /> + > `); });