Skip to content

Commit 6fe5feb

Browse files
committed
-
1 parent 2bc6046 commit 6fe5feb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/build/mdn-comments.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,9 @@ export async function generateDescriptions(): Promise<{
6262
const mdnUrl = entry.mdn_url.split("/en-US/docs/")[1];
6363
const slugArr = extractSlug(mdnUrl);
6464
const path = paths[entry.pageType];
65+
const comment = entry.summary.replace(/\n/g, " ").trim();
6566
if (!slugArr.length || !path) continue;
66-
insertComment(results, slugArr, entry.summary, path);
67+
insertComment(results, slugArr, comment, path);
6768
}
6869
return { interfaces: { interface: results } };
6970
}

0 commit comments

Comments
 (0)