File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import ReactSelect from "./ReactSelect";
55import { formatDistance } from "date-fns" ;
66import { setSearchParams } from "~/util/url" ;
77import { formatContentType } from "~/util/content-type" ;
8+ import Markdown from "react-markdown" ;
89
910type DocsData = keyof CollectionEntry < "docs" > [ "data" ] ;
1011type VideosData = keyof CollectionEntry < "stream" > [ "data" ] ;
@@ -367,7 +368,12 @@ export default function ResourcesBySelector({
367368 </ p >
368369 { showDescriptions && (
369370 < span className = "line-clamp-3" title = { page . data . description } >
370- { page . data . description }
371+ < Markdown
372+ disallowedElements = { [ "a" ] }
373+ unwrapDisallowed = { true }
374+ >
375+ { page . data . description }
376+ </ Markdown >
371377 </ span >
372378 ) }
373379 { showLastUpdated && "reviewed" in page . data && (
You can’t perform that action at this time.
0 commit comments