From cb023a3e7078e03bbb7881e98eb250aaca82ae55 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Thu, 26 Nov 2020 05:52:46 -0800 Subject: [PATCH] tools: update stability index linking logic Fix logic that prevents stability index text from linking to itself. PR-URL: https://github.com/nodejs/node/pull/36280 Reviewed-By: Daijiro Wachi Reviewed-By: Antoine du Hamel --- tools/doc/html.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/doc/html.js b/tools/doc/html.js index 53b14e1e0899f7..d35fd47b601e09 100644 --- a/tools/doc/html.js +++ b/tools/doc/html.js @@ -220,7 +220,7 @@ function preprocessElements({ filename }) { // Do not link to the section we are already in. const noLinking = filename.includes('documentation') && - heading !== null && heading.children[0].value === 'Stability Index'; + heading !== null && heading.children[0].value === 'Stability index'; // Collapse blockquote and paragraph into a single node node.type = 'paragraph';