tools: improve section tag additions in HTML doc generator · nodejs/node@1d2e676 · GitHub
Skip to content

Commit 1d2e676

Browse files
Trottdanielleadams
authored andcommitted
tools: improve section tag additions in HTML doc generator
There is an edge case involving GFM footnotes where our current code adds an empty section which results in a warning (but not an error) in HTML validators. This change causes the HTML generator to skip the unnecessary addition of a section tag in that one edge case. PR-URL: #41318 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
1 parent 1c0c140 commit 1d2e676

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

tools/doc/html.mjs

Lines changed: 6 additions & 2 deletions

0 commit comments

Comments
 (0)