From bbf1a0d7033823e63c63d8d4b2a2cfee7e2b28c7 Mon Sep 17 00:00:00 2001 From: Cameron Pfiffer Date: Mon, 29 Jun 2026 11:34:22 -0700 Subject: [PATCH] Render Leaflet ordered lists MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 👾 Generated with [Letta Code](https://letta.com) Co-Authored-By: Letta Code --- src/data.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/data.ts b/src/data.ts index 81c9250..4092ace 100644 --- a/src/data.ts +++ b/src/data.ts @@ -152,6 +152,21 @@ function leafletToMarkdown(pages: any[]): string { } break; + case "pub.leaflet.blocks.orderedList": + if (Array.isArray(block.children)) { + const start = Number.isFinite(block.startIndex) + ? Number(block.startIndex) + : 1; + block.children.forEach((item: any, index: number) => { + const text = item.content?.plaintext ?? ""; + lines.push( + `${start + index}. ${applyFacets(text, item.content?.facets)}` + ); + }); + lines.push(""); + } + break; + case "pub.leaflet.blocks.image": { const ref = block.image?.ref?.$link; if (ref) { -- 2.51.2