Markpad icon indicating copy to clipboard operation
Markpad copied to clipboard

Switching from numbered list to bullet one is preserving markup of numbered list

Open MightyEagle82 opened this issue 4 months ago • 2 comments

Switching a line from a numbered list item to a bullet list one (via the toolbar button) isn't removing the markup of the numbered list. While the switching vice versa is working as expected.

Steps to reproduce the behavior:

  1. Mark a line as an item of a numbered list via the toolbar ("1." is added at the begging).
  2. Mark that line as an item of a bullet list ("-" is added at the begging).
  3. But "1." is preserved.

Expected behavior "1." is replaced with "-".

Device

  • OS: Windows 11
  • Version: 25H2
  • App Version: 2.6.13

MightyEagle82 avatar Aug 03 '26 19:08 MightyEagle82

Fixed in v2.7.0 by #457 — all three list toggles write their marker to the head of the line, but only the numbered one removed a competing marker first, which is why bullet→numbered looked right and numbered→bullet left the 1. behind. Each toggle now declares what it displaces, so a bullet, a number and a task box compete for the one slot.

Four related cases went with it: checklist on 1. foo and on - foo, and bullet or numbered on - [ ] foo. One deliberate trade-off — turning a checklist item into a bullet or a number now drops the box, checked state included.

Could you confirm on your machine? Happy to reopen if it's still there.

PathGao avatar Aug 05 '26 10:08 PathGao

All is fine. Thanks.

MightyEagle82 avatar Aug 05 '26 11:08 MightyEagle82