mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
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:
1 parent
280d1b09be
commit
2183a2be51
1 file changed
+1
-1
+1
-1
@@ -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';
|
||||
|
||||
Reference in new issue
Block a user