From ea4a4a8341388b418a3334a77bed9e475f8c354e Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Tue, 2 Jan 2024 02:02:41 +0700 Subject: [PATCH] Update list-item.js --- rules/list-item.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/list-item.js b/rules/list-item.js index 18da4b5..a709d61 100644 --- a/rules/list-item.js +++ b/rules/list-item.js @@ -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);