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 734c5e0 commit 8673704Copy full SHA for 8673704
src/build/mdn-comments.ts
@@ -79,11 +79,11 @@ const paths: Record<string, string[]> = {
79
80
function generateTypes(content: string): string[] | undefined {
81
const pageType = content.match(/page-type:\s*["']?([^"'\n]+)["']?/)!;
82
- const type = pageType[1].split("-").pop()!;
83
- const plural = types[type];
+ const type = pageType[1];
+ const plural = paths[type];
84
if (!plural) return;
85
86
- return [plural, type];
+ return plural;
87
}
88
89
function generateSlug(content: string): string[] {
0 commit comments