Skip to content

Commit 3290ae5

Browse files
fix: custom implem markdownToSafeHTML for platform (#18018)
1 parent 16a7cf6 commit 3290ae5

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export function markdownToSafeHTML(markdown: string | null) {
2+
if (!markdown) return "";
3+
4+
return markdown;
5+
}

packages/platform/atoms/monorepo.ts

+1
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ export type { UpdateScheduleInput_2024_06_11 as UpdateScheduleBody } from "@calc
1515
export { Shell } from "./src/components/ui/shell";
1616
export { AddMembersWithSwitchWebWrapper } from "./add-members-switch/AddMembersWithSwitchWebWrapper";
1717
export { AddMembersWithSwitchPlatformWrapper } from "./add-members-switch/AddMembersWithSwitchPlatformWrapper";
18+
export { markdownToSafeHTML } from "./lib/markdownToSafeHTML";

packages/platform/atoms/vite.config.ts

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export default defineConfig(({ mode }) => {
5252
path: resolve("../../../node_modules/rollup-plugin-node-builtins"),
5353
os: resolve("../../../node_modules/rollup-plugin-node-builtins"),
5454
"@": path.resolve(__dirname, "./src"),
55+
"@calcom/lib/markdownToSafeHTML": "@calcom/atoms/monorepo",
5556
".prisma/client": path.resolve(__dirname, "../../prisma-client"),
5657
"@prisma/client": path.resolve(__dirname, "../../prisma-client"),
5758
"@calcom/prisma": path.resolve(__dirname, "../../prisma"),

0 commit comments

Comments
 (0)