3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-18 22:25:44 +01:00

Answer prose round 1: 0 🔴, 3 🟡 (0 misread); reword the comment and item 175

This commit is contained in:
2026-11-09 05:13:30 +01:00
committed by Lillem4n
parent 796f520990
commit fe7fabb7ab
2 changed files with 9 additions and 8 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ function headed(head: string): (body: BlockText) => BlockText {
function tryTaskList(node: AdfNode, path: ConvertErrorPath, depth: number, writing: Writing): Result<EmittedBlock> {
const items: PlacedBlock[][] = []
// The portable reduction leaves a task list opening with a task, so `item` is set before any child nests in it.
// The portable reduction opens every task list with a task, so this empty array is replaced before any block is pushed to it.
let item: PlacedBlock[] = []
// A child other than a task nests in the task before it.
for (const [index, child] of nodeContent(node).entries()) {