We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 344842f commit 2989f79Copy full SHA for 2989f79
packages/gitbook/src/components/DocumentView/Integration/contentkit.tsx
@@ -27,7 +27,10 @@ export const contentKitServerContext: ContentKitServerContext = {
27
codeBlock: (props) => {
28
return <PlainCodeBlock code={props.code} syntax={props.syntax} />;
29
},
30
+ // For some reason, Next thinks that this function is used in a client component
31
+ // it's likely an issue with the compiler not being able to track the usage of this function properly
32
markdown: async ({ className, markdown }) => {
33
+ 'use server';
34
const parsed = await parseMarkdown(markdown);
35
return <div className={className} dangerouslySetInnerHTML={{ __html: parsed }} />;
36
0 commit comments