Skip to content

Scheduling infrastructure for absolutely everyone.

fix: custom implem markdownToSafeHTML for platform (#18018)

Morgan3290ae526ae0
diff --git a/packages/platform/atoms/lib/markdownToSafeHTML.ts b/packages/platform/atoms/lib/markdownToSafeHTML.ts
new file mode 100644
index 00000000000..d691c73ce3f
--- /dev/null
+++ b/packages/platform/atoms/lib/markdownToSafeHTML.ts
@@ -0,0 +1,5 @@
+export function markdownToSafeHTML(markdown: string | null) {
+ if (!markdown) return "";
+
+ return markdown;
+}
diff --git a/packages/platform/atoms/monorepo.ts b/packages/platform/atoms/monorepo.ts
index 879e4e1bc9d..b22e7a78e2c 100644
--- a/packages/platform/atoms/monorepo.ts
+++ b/packages/platform/atoms/monorepo.ts
@@ -15,3 +15,4 @@ export type { UpdateScheduleInput_2024_06_11 as UpdateScheduleBody } from "@calc
export { Shell } from "./src/components/ui/shell";
export { AddMembersWithSwitchWebWrapper } from "./add-members-switch/AddMembersWithSwitchWebWrapper";
export { AddMembersWithSwitchPlatformWrapper } from "./add-members-switch/AddMembersWithSwitchPlatformWrapper";
+export { markdownToSafeHTML } from "./lib/markdownToSafeHTML";
diff --git a/packages/platform/atoms/vite.config.ts b/packages/platform/atoms/vite.config.ts
index 5dbb34003dc..29ea09002a1 100644
--- a/packages/platform/atoms/vite.config.ts
+++ b/packages/platform/atoms/vite.config.ts
@@ -52,6 +52,7 @@ export default defineConfig(({ mode }) => {
path: resolve("../../../node_modules/rollup-plugin-node-builtins"),
os: resolve("../../../node_modules/rollup-plugin-node-builtins"),
"@": path.resolve(__dirname, "./src"),
+ "@calcom/lib/markdownToSafeHTML": "@calcom/atoms/monorepo",
".prisma/client": path.resolve(__dirname, "../../prisma-client"),
"@prisma/client": path.resolve(__dirname, "../../prisma-client"),
"@calcom/prisma": path.resolve(__dirname, "../../prisma"),