mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
doc: fix order of end tags of list after heading
Current html result of a list after heading is <div class="signature"><ul>...</div></ul>. Correct it to <div class="signature"><ul>...</ul></div>. PR-URL: https://github.com/nodejs/node/pull/5874 Fixes: https://github.com/nodejs/node/issues/5873 Reviewed-By: Roman Reiss <me@silverwind.io>
This commit is contained in:
@@ -159,11 +159,11 @@ function parseLists(input) {
|
||||
}
|
||||
if (tok.type === 'list_end') {
|
||||
depth--;
|
||||
output.push(tok);
|
||||
if (depth === 0) {
|
||||
state = null;
|
||||
output.push({ type:'html', text: '</div>' });
|
||||
}
|
||||
output.push(tok);
|
||||
return;
|
||||
}
|
||||
if (tok.text) {
|
||||
|
||||
Reference in New Issue
Block a user