We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 539396e commit c4eedeaCopy full SHA for c4eedea
build/utils.ts
@@ -14,13 +14,11 @@ export function extractFirstBigParagraph(html: string): string {
14
return '';
15
}
16
17
- for (const match of matches) {
18
- if (match && match.length > 100) {
19
- return match;
20
- }
21
+ const paragraph = matches.find(m => m && m.length > 100) || '';
+ // strip anchor tags but retain link text
+ const result = paragraph.replace(/<a\s.*?>(.*?)<\/a>/g, '$1');
22
23
- return '';
+ return result;
24
25
26
export function makeLightBlogList(fullList: BlogEntry[]): BlogEntryLight[] {
0 commit comments