fix: custom implem markdownToSafeHTML for platform (#18018)

This commit is contained in:
Morgan
2024-12-05 12:18:45 +00:00
committed by GitHub
parent 16a7cf6d04
commit 3290ae526a
3 changed files with 7 additions and 0 deletions
@@ -0,0 +1,5 @@
export function markdownToSafeHTML(markdown: string | null) {
if (!markdown) return "";
return markdown;
}
+1
View File
@@ -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";
+1
View File
@@ -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"),