Skip to content

Commit

Permalink
Update list-item.js
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus authored Jan 1, 2024
1 parent e7ccfbe commit ea4a4a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules/list-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function validateList(list, file) {
let [link, ...description] = paragraph.children;

// Might have children like: '{image} {text} {link} { - description}'
// Keep discarding prefix elements until we find somthing link-like.
// Keep discarding prefix elements until we find something link-like.
while (link.type !== 'linkReference' && link.type !== 'link' && description.length > 1) {
link = description[0];
description = description.slice(1);
Expand Down

0 comments on commit ea4a4a8

Please sign in to comment.