File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,22 @@ import {
1010} from '@/components/ui/card' ;
1111import { Button } from '@/components/ui/button' ;
1212
13+ const parseBio = ( text : string ) : string => {
14+ return text
15+ . replace (
16+ / \b R e d o c l y \b / g,
17+ '<a href="https://github.com/redocly" target="_blank" rel="noopener noreferrer" class="text-blue-600 dark:text-blue-400 hover:underline transition-colors duration-200">Redocly</a>' ,
18+ )
19+ . replace (
20+ / \b O p e n A P I I n i t i a t i v e \b / g,
21+ '<a href="https://github.com/OAI" target="_blank" rel="noopener noreferrer" class="text-blue-600 dark:text-blue-400 hover:underline transition-colors duration-200">OpenAPI Initiative</a>' ,
22+ )
23+ . replace (
24+ / \b A P I D e s i g n M a t t e r s \b / g,
25+ '<a href="https://apidesignmatters.substack.com" target="_blank" rel="noopener noreferrer" class="text-blue-600 dark:text-blue-400 hover:underline transition-colors duration-200">API Design Matters</a>' ,
26+ ) ;
27+ } ;
28+
1329interface Contribution {
1430 title : string ;
1531 date ?: {
@@ -171,9 +187,10 @@ const AmbassadorCard = ({ ambassador }: { ambassador: Ambassador }) => {
171187 </ CardHeader >
172188
173189 { bio && (
174- < p className = 'text-gray-700 dark:text-slate-100 text-sm mb-4' >
175- { bio }
176- </ p >
190+ < p
191+ className = 'text-gray-700 dark:text-slate-100 text-sm mb-4'
192+ dangerouslySetInnerHTML = { { __html : parseBio ( bio as string ) } }
193+ />
177194 ) }
178195
179196 { ( company || country ) && (
You can’t perform that action at this time.
0 commit comments