Skip to content

Commit 8cf1add

Browse files
Trottdanielleadams
authored andcommitted
tools: update stability index linking logic
Fix logic that prevents stability index text from linking to itself. PR-URL: #36280 Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent 0401ffb commit 8cf1add

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/doc/html.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ function preprocessElements({ filename }) {
220220

221221
// Do not link to the section we are already in.
222222
const noLinking = filename.includes('documentation') &&
223-
heading !== null && heading.children[0].value === 'Stability Index';
223+
heading !== null && heading.children[0].value === 'Stability index';
224224

225225
// Collapse blockquote and paragraph into a single node
226226
node.type = 'paragraph';

0 commit comments

Comments
 (0)