Skip to content

Commit a7202d4

Browse files
committed
fix: solidified both platform's normalizers
1 parent 2a5797c commit a7202d4

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

cpp/parser/GumboNormalizer.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -595,10 +595,8 @@ static void flatten_li_node(GumboNode *node, buffer_t *ib, buffer_t *out,
595595
const char *tag = get_tag_name(node, buf, sizeof(buf));
596596
if (tag && strcmp(tag, "img") == 0) {
597597
const char *role = get_attr(ctx->el, "role");
598-
const char *cls = get_attr(ctx->el, "class");
599598
// strip the <img> that Google Docs uses for the display of a checkbox icon
600-
if ((role && strcmp(role, "checkbox") == 0) ||
601-
(cls && strstr(cls, "checklist") != NULL)) {
599+
if (role && strcmp(role, "checkbox") == 0) {
602600
return;
603601
}
604602
}

0 commit comments

Comments
 (0)