diff --git a/__tests__/browser/__image_snapshots__/markdown-test-js-visual-regression-tests-rdmd-syntax-renders-callout-tests-without-surprises-1-snap.png b/__tests__/browser/__image_snapshots__/markdown-test-js-visual-regression-tests-rdmd-syntax-renders-callout-tests-without-surprises-1-snap.png index 8e435f209..b429df265 100644 Binary files a/__tests__/browser/__image_snapshots__/markdown-test-js-visual-regression-tests-rdmd-syntax-renders-callout-tests-without-surprises-1-snap.png and b/__tests__/browser/__image_snapshots__/markdown-test-js-visual-regression-tests-rdmd-syntax-renders-callout-tests-without-surprises-1-snap.png differ diff --git a/__tests__/components/__snapshots__/index.test.ts.snap b/__tests__/components/__snapshots__/index.test.ts.snap index 110832099..70ad919b1 100644 --- a/__tests__/components/__snapshots__/index.test.ts.snap +++ b/__tests__/components/__snapshots__/index.test.ts.snap @@ -1,6 +1,6 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`Components > Callout 1`] = `"
"`; +exports[`Components > Callout 1`] = `"Error Callout
Lorem ipsum dolor.
"`; exports[`Components > Embed 1`] = `" "`; diff --git a/__tests__/components/index.test.ts b/__tests__/components/index.test.ts index 84435a5bb..815ed3a0c 100644 --- a/__tests__/components/index.test.ts +++ b/__tests__/components/index.test.ts @@ -31,7 +31,7 @@ describe('Components', () => { ({ container } = render(React.createElement(component))); expect(container.innerHTML).toMatchInlineSnapshot( - `"Error Callout
Lorem ipsum dolor.
"`, + `"Callout with no title.
"`, ); cleanup(); diff --git a/components/Callout/index.tsx b/components/Callout/index.tsx index b10d784c9..5f94a06a0 100644 --- a/components/Callout/index.tsx +++ b/components/Callout/index.tsx @@ -29,10 +29,10 @@ const Callout = (props: Props) => { return ( // @ts-ignoreCallout with no title.
-);+
+ {React.Children.toArray(children).slice(1)}{icon} {empty || React.Children.toArray(children)[0]} -