11import { useAutoAnimate } from "@formkit/auto-animate/react" ;
22import { zodResolver } from "@hookform/resolvers/zod" ;
33import { isValidPhoneNumber } from "libphonenumber-js" ;
4- import MarkdownIt from "markdown-it" ;
54import { Trans } from "next-i18next" ;
65import Link from "next/link" ;
76import type { EventTypeSetupProps , FormValues } from "pages/event-types/[type]" ;
@@ -14,6 +13,7 @@ import type { EventLocationType } from "@calcom/app-store/locations";
1413import { getEventLocationType , MeetLocationType , LocationType } from "@calcom/app-store/locations" ;
1514import { CAL_URL } from "@calcom/lib/constants" ;
1615import { useLocale } from "@calcom/lib/hooks/useLocale" ;
16+ import { md } from "@calcom/lib/markdownIt" ;
1717import { slugify } from "@calcom/lib/slugify" ;
1818import turndown from "@calcom/lib/turndownService" ;
1919import { Button , Editor , Label , Select , SettingsToggle , Skeleton , TextField } from "@calcom/ui" ;
@@ -23,8 +23,6 @@ import { EditLocationDialog } from "@components/dialog/EditLocationDialog";
2323import type { SingleValueLocationOption , LocationOption } from "@components/ui/form/LocationSelect" ;
2424import LocationSelect from "@components/ui/form/LocationSelect" ;
2525
26- const md = new MarkdownIt ( "default" , { html : true , breaks : true , linkify : true } ) ;
27-
2826const getLocationFromType = (
2927 type : EventLocationType [ "type" ] ,
3028 locationOptions : Pick < EventTypeSetupProps , "locationOptions" > [ "locationOptions" ]
0 commit comments