File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,9 @@ export default function WhatsNew() {
6666 </ span >
6767 </ div >
6868 < div className = "mt-4 prose text-ink-1000" >
69- < ReactMarkdown > { release . body || "_No release notes provided._" } </ ReactMarkdown >
69+ < ReactMarkdown >
70+ { formatPullLinks ( release . body || "_No release notes provided._" ) }
71+ </ ReactMarkdown >
7072 </ div >
7173 < Link href = { release . html_url } > View on GitHub</ Link >
7274 </ div >
@@ -76,3 +78,15 @@ export default function WhatsNew() {
7678 </ PageBase >
7779 )
7880}
81+
82+ function formatPullLinks ( text = "" ) {
83+ return text
84+ . replace ( 'CompassMeet' , 'CompassConnections' )
85+ . 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 } )` )
88+ . replace (
89+ / 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,
90+ ( _ , range ) => `[${ range } ](https://github.com/CompassConnections/Compass/compare/${ range } )` )
91+ }
92+
You can’t perform that action at this time.
0 commit comments