Skip to content

Commit bada211

Browse files
committed
html support in event submissions
1 parent bff968d commit bada211

3 files changed

Lines changed: 140 additions & 50 deletions

File tree

lib/components/event-schedule-new/event/event.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import { Separator } from "lib/components/ui/separator";
1616
import { useDraggableLink } from "lib/hooks/useDraggableLink";
1717
import { DifficultyTag, TypeTag } from "../calendar.components";
1818
import VoxelButton from "lib/components/voxel-button/button";
19+
import { convert } from "html-to-text";
1920

2021
type EventProps = {
2122
event: EventType;
@@ -240,7 +241,7 @@ const Event: React.FC<EventProps> = ({
240241
))} */}
241242
{/* </div> */}
242243

243-
<div className="text-sm">{event.description}</div>
244+
<div className="text-sm">{convert(event.description)}</div>
244245

245246
{/* <Link href={event.eventLink} className="self-start">
246247
<VoxelButton

lib/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"clsx": "^2.1.1",
2121
"date-fns": "^4.1.0",
2222
"framer-motion": "12.0.0-alpha.1",
23+
"html-to-text": "^9.0.5",
2324
"input-otp": "^1.2.4",
2425
"lucide-react": "^0.511.0",
2526
"moment": "^2.29.1",
@@ -30,7 +31,7 @@
3031
"react-anchor-link-smooth-scroll": "^1.0.12",
3132
"react-cool-dimensions": "^3.0.1",
3233
"react-dom": "^19.0.0",
33-
"react-markdown": "^9.0.1",
34+
"react-markdown": "^9.1.0",
3435
"react-slick": "^0.29.0",
3536
"react-tippy": "^1.4.0",
3637
"react-toggle": "^4.1.3",

0 commit comments

Comments
 (0)