a tool for shared writing and social publishing
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

flatten list children to find sublists

+3 -1
+3 -1
components/Blocks/TextBlock/useHandlePaste.ts
··· 447 447 } 448 448 449 449 if (child.tagName === "LI") { 450 - let ul = Array.from(child.children).find((f) => f.tagName === "UL"); 450 + let ul = Array.from(child.children) 451 + .flatMap((f) => flattenHTMLToTextBlocks(f as HTMLElement)) 452 + .find((f) => f.tagName === "UL"); 451 453 let checked = child.getAttribute("data-checked"); 452 454 if (checked !== null) { 453 455 rep.mutate.assertFact({