Title: id(web): ordered task lists lose their ordering on save — rewritten as bullet task lists · Issue #997 · developing-today/code · GitHub
Open Graph Title: id(web): ordered task lists lose their ordering on save — rewritten as bullet task lists · Issue #997 · developing-today/code
X Title: id(web): ordered task lists lose their ordering on save — rewritten as bullet task lists · Issue #997 · developing-today/code
Description: Bug In the id web markdown codec (pkgs/id/src/web/markdown.rs), an ordered task list loses its ordering on save: it comes back as a bullet task list, and a non-1 start number is lost with it. Evidence (verified this run, main 14dd66b6) S...
Open Graph Description: Bug In the id web markdown codec (pkgs/id/src/web/markdown.rs), an ordered task list loses its ordering on save: it comes back as a bullet task list, and a non-1 start number is lost with it. Evide...
X Description: Bug In the id web markdown codec (pkgs/id/src/web/markdown.rs), an ordered task list loses its ordering on save: it comes back as a bullet task list, and a non-1 start number is lost with it. Evide...
Opengraph URL: https://github.com/developing-today/code/issues/997
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"id(web): ordered task lists lose their ordering on save — rewritten as bullet task lists","articleBody":"## Bug\n\nIn the id web markdown codec (`pkgs/id/src/web/markdown.rs`), an **ordered** task list loses its ordering on save: it comes back as a bullet task list, and a non-1 start number is lost with it.\n\n## Evidence (verified this run, main `14dd66b6`)\n\nStandalone probe crate compiling the verbatim codec from current main (logs: goal `hidden_files/probe-2026-10-26-1215/out2.log` + `out3.log`):\n\n- Input:\n ```\n 1. [ ] todo\n 2. [x] done\n ```\n Parsed PM: a single `task_list` node (no `order` attr anywhere). Saved output:\n ```\n - [ ] todo\n - [x] done\n ```\n- Input:\n ```\n 5. [ ] five\n 6. [x] six\n ```\n Saved output: `- [ ] five` / `- [x] six` — both the numbering and the start value 5 are gone.\n\nRoot cause, both directions:\n\n- Parse: the `NodeValue::List` arm (markdown.rs:~205-220) checks only whether the first child is a `TaskItem`; when it is, it emits `{\"type\":\"task_list\"}` and discards `list.list_type` (Ordered vs Bullet) and `list.start`. The non-task branch right below does preserve both (`ordered_list` with `attrs.order`).\n- Save: the `task_list` arm of `json_to_ast` (markdown.rs:~946) hardcodes `list_type: ListType::Bullet, bullet_char: b'-'` — there is no PM shape that could carry the ordering even if parse kept it.\n\nFor comparison, a plain ordered list round-trips correctly (`3. three` / `4. four` keep `order: 3` — same probe), and a plain bullet task list round-trips correctly. Only the ordered+task combination loses data.\n\n## Why it matters\n\nOrdered checklists are a natural way to write sequenced steps (\"step 1… step 2…\") with completion state. Opening such a file in id and saving any edit silently renumbers it into an unordered checklist — the sequence information the author encoded is destroyed without any visible warning in the editor.\n\n## Acceptance criteria\n\n- `1. [ ] todo\\n2. [x] done` round-trips as an ordered task list; `5. [ ] five\\n6. [x] six` additionally preserves the start number 5 (same `order` convention as `ordered_list`).\n- The PM representation chosen (e.g. an `order` attr on `task_list`, or ordered list semantics for task items) must be one the web editor schema can actually render/edit — check `pkgs/id/web` before settling; if the editor cannot represent it today, the issue's fix note must say what was chosen and why.\n- Mixed content keeps working: `- [ ] todo\\n- plain` (task + plain items in one list, existing test `test_task_list_mixed_content`) does not regress.\n- New unit tests in `pkgs/id/src/web/markdown.rs` cover ordered task lists with start 1 and start >1, both directions.\n- Existing codec tests pass.\n\n## Related\n\n- Plain task lists and plain ordered lists are both fine (probe-verified this run) — this is only the intersection.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-26T17:19:16Z","url":"https://github.com/developing-today/code/issues/997"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:556afeb9-2769-323c-b0ba-907623c84ba9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8852:1EFD:6BC4D2:96A4D6:6B06AEE6 |
| html-safe-nonce | 88c2c950f3cf9624e13716e90e836bb6d8c0789f121634b24daaf165b065e8dd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODUyOjFFRkQ6NkJDNEQyOjk2QTRENjo2QjA2QUVFNiIsInZpc2l0b3JfaWQiOiI4NDgxODE0MzU4Mzk2NDE1NzE4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2e69eb05c6e970e21cdcb9d6e27f765cd4d76dc80bbbc28d85255e7a3411d4e3 |
| hovercard-subject-tag | issue:6044681032 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/997/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e41d45f086390c77803054539543d1e31502ec713f7d979e923095dc018c78f5/developing-today/code/issues/997 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e41d45f086390c77803054539543d1e31502ec713f7d979e923095dc018c78f5/developing-today/code/issues/997 |
| og:image:alt | Bug In the id web markdown codec (pkgs/id/src/web/markdown.rs), an ordered task list loses its ordering on save: it comes back as a bullet task list, and a non-1 start number is lost with it. Evide... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4462ff7ebfd3d551f202659f2423dae617b6849d23b1df6465dc504ef497d14a |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 0599d77dd29476ebb6797bcafb4d4987ea6c8fc9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width