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 <daijiro.wachi@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This commit is contained in:
Rich Trott authored and Michaël Zasso committed 2021-05-01 09:44:35 +02:00
1 parent 280d1b09be
commit 2183a2be51
1 file changed
+1 -1
+1 -1
View File
@@ -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';