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,13 @@ import {
1010} from '@/components/ui/card' ;
1111import { Button } from '@/components/ui/button' ;
1212
13+ const parseBio = ( text : string ) : string => {
14+ return text
15+ . replace ( / \b R e d o c l y \b / g, '<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>' )
16+ . replace ( / \b O p e n A P I I n i t i a t i v e \b / g, '<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>' )
17+ . replace ( / \b A P I D e s i g n M a t t e r s \b / g, '<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>' )
18+ } ;
19+
1320interface Contribution {
1421 title : string ;
1522 date ?: {
@@ -171,9 +178,10 @@ const AmbassadorCard = ({ ambassador }: { ambassador: Ambassador }) => {
171178 </ CardHeader >
172179
173180 { bio && (
174- < p className = 'text-gray-700 dark:text-slate-100 text-sm mb-4' >
175- { bio }
176- </ p >
181+ < p
182+ className = 'text-gray-700 dark:text-slate-100 text-sm mb-4'
183+ dangerouslySetInnerHTML = { { __html : parseBio ( bio as string ) } }
184+ />
177185 ) }
178186
179187 { ( company || country ) && (
You can’t perform that action at this time.
0 commit comments