Skip to content

Commit

Permalink
tools: update stability index linking logic
Browse files Browse the repository at this point in the history
Fix logic that prevents stability index text from linking to itself.

PR-URL: nodejs/node#36280
Reviewed-By: Daijiro Wachi <[email protected]>
Reviewed-By: Antoine du Hamel <[email protected]>
  • Loading branch information
Trott committed Dec 1, 2020
1 parent 9cf2341 commit cb023a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/doc/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit cb023a3

Please sign in to comment.