heyman / heynote

A dedicated scratchpad for developers
https://heynote.com
Other
3.86k stars 194 forks source link

Bug: Markdown list does not recalculate a numbered list upon removal of a line #186

Open thomasbiddle opened 7 months ago

thomasbiddle commented 7 months ago

Describe the bug Markdown list does not recalculate a numbered list upon removal of a line.

For example, if 1. 2. 3. is created and 2. is deleted, it will be 1. 3. rather than 1. 2.

To Reproduce Steps to reproduce the behavior:

  1. Create a Markdown block
  2. Create a list (1. 2. 3. ...)
  3. Delete one of the entries

Expected behavior Should recalculate all numbers below

Screenshots image

Desktop (please complete the following information): MacOS Version 13.4 (22F66)

Additional context If continuing to add entries, it will calculate the new ones correctly based on whatever the previous was - but will not recalculate the whole list