11import { useEffect , useState } from "react"
22import axios from "axios"
3- import ReactMarkdown from "react-markdown"
43import { PageBase } from "web/components/page-base"
54import { SEO } from "web/components/SEO"
65import { Col } from "web/components/layout/col"
76import { Title } from "web/components/widgets/title"
87import Link from "next/link"
98import { CompassLoadingIndicator } from "web/components/widgets/loading-indicator"
109import { githubRepoSlug } from "common/constants" ;
10+ import { CompassMarkdown } from "web/components/markdown" ;
1111
1212type Release = {
1313 id : number
@@ -66,9 +66,9 @@ export default function WhatsNew() {
6666 </ span >
6767 </ div >
6868 < div className = "mt-4 mb-4 prose prose-neutral dark:prose-invert text-ink-1000" >
69- < ReactMarkdown >
69+ < CompassMarkdown >
7070 { formatPullLinks ( release . body || "_No release notes provided._" ) }
71- </ ReactMarkdown >
71+ </ CompassMarkdown >
7272 </ div >
7373 < Link href = { release . html_url } > View on GitHub</ Link >
7474 </ div >
@@ -83,8 +83,8 @@ function formatPullLinks(text = "") {
8383 return text
8484 . replace ( 'CompassMeet' , 'CompassConnections' )
8585 . replace (
86- / h t t p s : \/ \/ g i t h u b \. c o m \/ C o m p a s s C o n n e c t i o n s \/ C o m p a s s \/ p u l l \/ ( \d + ) / g,
87- ( _ , num ) => `[#${ num } ](https://github.com/CompassConnections/Compass/pull/${ num } )` )
86+ / h t t p s : \/ \/ g i t h u b \. c o m \/ C o m p a s s C o n n e c t i o n s \/ C o m p a s s \/ p u l l \/ ( \d + ) / g,
87+ ( _ , num ) => `[#${ num } ](https://github.com/CompassConnections/Compass/pull/${ num } )` )
8888 . replace (
8989 / \* * F u l l C h a n g e l o g \* * : h t t p s : \/ \/ g i t h u b \. c o m \/ C o m p a s s C o n n e c t i o n s \/ C o m p a s s \/ c o m p a r e \/ ( [ \w . - ] + \. \. \. [ \w . - ] + ) / g,
9090 '' )
0 commit comments