From 9190421820bf706d720ea956db055a4562f65630 Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Thu, 26 Oct 2023 12:03:45 +0300 Subject: [PATCH] Update build-apidoc.js --- api-generator/build-apidoc.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api-generator/build-apidoc.js b/api-generator/build-apidoc.js index 00d5490d4..46df64a5e 100644 --- a/api-generator/build-apidoc.js +++ b/api-generator/build-apidoc.js @@ -358,6 +358,10 @@ if (project) { .map((s) => { if (s.text.indexOf('[here]') > -1) { return `${s.text.slice(0, s.text.indexOf('[here]'))} here ${s.text.slice(s.text.indexOf(')') + 1)}`; + } else if (s.text.indexOf('[MDN Reference]') > -1) { + return `${s.text.slice(0, s.text.indexOf('[MDN Reference]'))} MDN Reference ${s.text.slice( + s.text.indexOf(')') + 1 + )}`; } return s.text || '';