Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
feat: dynamically load code imports
Marc Seitz5480611e31c6
diff --git a/components/view/viewer/notion-page.tsx b/components/view/viewer/notion-page.tsxindex 146f2590..2360cafb 100644--- a/components/view/viewer/notion-page.tsx+++ b/components/view/viewer/notion-page.tsx@@ -37,6 +37,10 @@ const Collection = dynamic(() =>),);+const Code = dynamic(() =>+ import("react-notion-x/build/third-party/code").then((m) => m.Code),+);+export const NotionPage = ({recordMap,versionNumber,@@ -432,6 +436,7 @@ export const NotionPage = ({disableHeader={true}components={{Collection,+ Code,PageLink: (props: {className: string;href: any;@@ -467,4 +472,4 @@ export const NotionPage = ({/></div>);-};\ No newline at end of file+};