fix/markdown-task-list-rendering: Render markdown checklists as task lists on update_page #12

Merged
aleleba merged 1 commits from fix/markdown-task-list-rendering into main 2026-06-11 00:02:09 -06:00

1 Commits

Author SHA1 Message Date
45958ec063 fix: render markdown checklists as task lists on update_page
Markdown checklist items (`- [ ]` / `- [x]`) were rendered as plain
bullet points instead of checkboxes. The client-side conversion pipeline
(marked -> generateJSON) dropped the checkbox because:

- tiptapExtensions did not register TaskList/TaskItem.
- marked emits `<ul><li><input type="checkbox">`, but TipTap's parseHTML
  rules only match `ul[data-type="taskList"]` / `li[data-type="taskItem"]`
  with the checked state in `data-checked`.

Register TaskList/TaskItem and add normalizeTaskLists() to rewrite marked's
checkbox markup into the format TipTap expects before generateJSON runs.
collaboration.ts now reuses markdownToTiptapJson() so update_page and
comments share the same conversion.
2026-06-11 06:00:02 +00:00