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 2bc6046 commit 6fe5febCopy full SHA for 6fe5feb
src/build/mdn-comments.ts
@@ -62,8 +62,9 @@ export async function generateDescriptions(): Promise<{
62
const mdnUrl = entry.mdn_url.split("/en-US/docs/")[1];
63
const slugArr = extractSlug(mdnUrl);
64
const path = paths[entry.pageType];
65
+ const comment = entry.summary.replace(/\n/g, " ").trim();
66
if (!slugArr.length || !path) continue;
- insertComment(results, slugArr, entry.summary, path);
67
+ insertComment(results, slugArr, comment, path);
68
}
69
return { interfaces: { interface: results } };
70
0 commit comments