diff --git a/packages/platform/atoms/lib/markdownToSafeHTML.ts b/packages/platform/atoms/lib/markdownToSafeHTML.ts new file mode 100644 index 0000000000..d691c73ce3 --- /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 879e4e1bc9..b22e7a78e2 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 5dbb34003d..29ea09002a 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"),