The list item rule indented a nested block by a fixed four spaces, but an
ordered item's prefix is `${n}. `: four characters for items 1-9, five
from item 10, six from item 100. CommonMark only nests a block that
reaches the item's content column, so from item 10 onward the exported
sub-list sat one column short and the Markdown importer (`marked`) read
it as a lazy continuation of the parent's text:
29. LLM:
1. Detect GitHub Copilot shims. <- becomes "LLM: 1. Detect..."
That broke the export/import cycle `pnpm edit-docs:sync-docs` runs over
the docs: the v0.106.0 release note, written in Trilium, was exported
with the short indent and every later sync collapsed item 29's sub-list
into one line.
An ordered item now indents by its prefix width, as upstream turndown
does. Bullets and task items keep four spaces, which already reach their
content column. The v0.106.0 note is re-indented to what the fixed
exporter writes.
The round-trip spec exercises items 9, 10 and 100 in lists starting at 1:
the importer drops `<ol start>`, which is a separate bug.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Every link `docs.mjs check` reported, all older than this branch:
- New Layout: four reference-link pills read "[missing note]" although
their hrefs resolved. The editor's data downcast titles a pill through
the synchronous froca lookup, which returns that placeholder for a note
the lazily filled cache has not loaded, and the edit-docs session behind
fbdbec7f3e saved it into the content. The text is now the targets'
titles again; the downcast itself is a separate fix.
- Formatting toolbar linked `#root/_options/_optionsTextNotes`, which
skips the `_hidden/` segment every other page uses.
- Three Developer Guide pages and one release note linked note IDs from
the original author's private tree, which exist in no docs tree. The
CKEditor and Mermaid Diagrams targets now point at the repository's
pages; the two with no equivalent page are plain text.
The Developer Guide's Documentation page named `src/public/app/doc_notes`
and a `docs:edit` command, neither of which exists; it now describes the
current path, `pnpm edit-docs:sync-docs`, and where the meta file matters
when editing by hand.
The help HTML twins are regenerated by that sync.
Co-Authored-By: Claude Fable 5.1 <[email protected]>