st3v3nmw / obsidian-spaced-repetition

Fight the forgetting curve by reviewing flashcards & entire notes on Obsidian
https://www.stephenmwangi.com/obsidian-spaced-repetition/
MIT License
1.53k stars 184 forks source link

[BUG] Decreasing numbered List #925

Closed 0xOktAvIan closed 6 months ago

0xOktAvIan commented 6 months ago

Describe the bug When creating a decreasing numbered list (4. 3. 2. 1. - over multiple lines of course), when reviewing that flashcard, the list has the wrong numbers (4. 5. 6. 7.).

To Reproduce

  1. Open Test Vault
  2. Install Spaced Repetition
  3. Create file, type decreasing numbered list
  4. review the flashcard

Expected behavior The numbered list should be decreasing (4. 3. 2. 1.)

Screenshots

image

Versions (please complete the following information):

Additional context

File to reproduce: Test.md

ronzulu commented 6 months ago

It seems to be a quirk of Obsidian's reading mode. It exhibits the same issue in the following case:

925.md

4. This
3. is
2. a
1. test

In reading mode (independent of the spaced repetition plugin) renders as: image

Note that if there is text in the line preceding the list, it renders correctly:

#flashcards/925

Test question
?
Here is the decreasing list
4. This
3. is
2. a
1. test

image

(well, nearly correctly... I don't know why it put the last line out there like that)

Cheers Ronny

ronzulu commented 6 months ago

Closing this now as this seems to be an Obsidian matter not specific to this plugin.