Markpad icon indicating copy to clipboard operation
Markpad copied to clipboard

Checklists no longer work in Preview mode.

Open arcadepro opened this issue 6 months ago • 8 comments

Describe the bug In version 2.6.8+ you can no longer toggle the state of checklist items in preview mode. The checkboxes are just greyed out instead of being blue and allowing interaction.

Device Windows 10. Markpad 2.6.8 and 2.6.9.

Additional context 2.6.7 was the last version to work as expected. Installed via Markpad_2.6.7_x64-setup.exe. (Just for me) It seems that installing via version 2.6.8 (MarkpadInstaller_2.6.8_x64.exe) or above breaks some functionality re: checklists.

2.6.7 Image

2.6.8+ Image

arcadepro avatar May 10 '26 22:05 arcadepro

@alecdotdev Reproduced in v2.6.14: current Comrak task checkbox HTML no longer matches the old recognizer, so preview controls stay disabled. #320 fixes the renderer-to-preview contract, including ordered/quoted tasks and raw HTML controls. Please retest after merge.

PathGao avatar Jul 31 '26 07:07 PathGao

I traced this to the preview checkbox click handler inferring a new state with !checkbox.checked. Some accessibility/input paths can commit the native control before that handler runs, leaving the Markdown write with the wrong state. #327 switches to the committed change value and restores the UI if persistence fails; it was verified in an isolated macOS release bundle by checking both the control and file content.

PathGao avatar Jul 31 '26 11:07 PathGao

Fixed by #345: the renderer now marks genuine task-list checkboxes so the preview can enable them, and #352 writes the toggle back to the Markdown source. Not in a release yet — it's on master, after v2.6.14.

PathGao avatar Aug 02 '26 21:08 PathGao

This still doesn't work correctly. 2.6.7 was the last working version.

The newer fixes make the checkboxes blue, rather than grey, but they're still not interactable in preview mode.

Added a test file.

Fed.md

arcadepro avatar Aug 07 '26 23:08 arcadepro

@PathGao I don’t know if that is the same issue, I was going to log a separate one but checked if there was an existing one. in my Hard stress test file it looks like this now"

Image

Guardiancelte avatar Aug 08 '26 02:08 Guardiancelte

@PathGao I don’t know if that is the same issue, I was going to log a separate one but checked if there was an existing one. in my Hard stress test file it looks like this now"

Image

Could you provide a bit more detail on what you're seeing? Also, if you could use high-contrast images (like white background/annotations), it’d be super helpful. It's pretty hard to guess the exact issue from just a screenshot alone.

PathGao avatar Aug 08 '26 02:08 PathGao

@PathGao you marked as completed so you might have figured it out: here is another screenshot with: on white background, as you can see on the right preview panel, the box of the checkbox does not align with the text, despite it being on the same line in the edit panel.

  • [ ] Outline navigation is accurate. in edit Looks like below in preview:

[ ] Outline navigation is accurate. Image

Guardiancelte avatar Aug 08 '26 06:08 Guardiancelte

yes I fixed it。 Thank you

PathGao avatar Aug 08 '26 06:08 PathGao