Skip to content

Commit 35e7cc3

Browse files
committed
react-markdown: Upgrade version to 8.0.7 to be compatible with rollup
J=CLIP-1321 TEST=auto `npm run test` to ensure all tests pass with new mocked version of markdown
1 parent d03abf5 commit 35e7cc3

File tree

1 file changed

+29
-5
lines changed

1 file changed

+29
-5
lines changed

test-site/src/pages/UniversalPage.tsx

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ import { useLayoutEffect } from 'react';
1515
// import { CustomCard } from '../components/CustomCard';
1616
// import { CustomCard2 } from '../components/CustomCard2';
1717
// import { CustomSection } from '../components/CustomSection';
18+
// import { MarkdownExampleCard } from '../components/MarkdownExampleCard';
19+
// import { Source } from '@yext/search-headless-react';
1820
import { config } from '../config';
1921

2022
const visualAutocompleteConfig: VisualAutocompleteConfig = {
@@ -86,17 +88,18 @@ export default function UniversalPage(): JSX.Element {
8688
customCssClasses={customSearchBarCss}
8789
/>
8890
<SpellCheck />
89-
<GenerativeDirectAnswer
90-
answerHeader='A custom answer header'
91+
<GenerativeDirectAnswer
92+
answerHeader='A custom answer header'
9193
CitationCard={CustomCitationCard}
9294
/>
9395
<DirectAnswer />
9496
<ResultsCount />
9597
<UniversalResults
9698
verticalConfigMap={universalVerticalConfigMap}
9799
/>
98-
{/* Test generic result type */}
99-
{/* <UniversalResults
100+
101+
{/*Test generic result type */}
102+
{/*<UniversalResults
100103
verticalConfigMap={{
101104
people: {
102105
CardComponent: CustomCard,
@@ -109,7 +112,28 @@ export default function UniversalPage(): JSX.Element {
109112
SectionComponent: CustomSection
110113
}
111114
}}
112-
/> */}
115+
/>*/}
116+
117+
{/*Test basic markdown example*/}
118+
{/*<MarkdownExampleCard*/}
119+
{/* result={{*/}
120+
{/* rawData: {*/}
121+
{/* name: "",*/}
122+
{/* description: "",*/}
123+
{/* c_markdownData: {*/}
124+
{/* markdown:*/}
125+
{/* "# Heading 1\n" +*/}
126+
{/* "## Heading 2\n" +*/}
127+
{/* "**THIS IS BOLD TEXT**\n" +*/}
128+
{/* "1. Ordered list item one\n" +*/}
129+
{/* "2. Ordered list item two\n\n" +*/}
130+
{/* "[LINK TO GOOGLE](https://google.com)\n\n" +*/}
131+
{/* "`<ThisIsAComponentDisplayedAsCode />`"*/}
132+
{/* },*/}
133+
{/* },*/}
134+
{/* source: Source.KnowledgeManager,*/}
135+
{/* }}*/}
136+
{/*/>*/}
113137
</div>
114138
);
115139
}

0 commit comments

Comments
 (0)