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.59k stars 190 forks source link

[Bug]: Cards missing when horizontal rule present in document (sometimes) #1008

Open AstolfoOnTheMoon opened 4 months ago

AstolfoOnTheMoon commented 4 months ago

Describe the bug

When I try to "Review Flashcards" there are only 2 out of 18 decks. Everything is updated to latest version. I'm using obsidian on android and on Ubuntu.

To Reproduce

I was using Obsidian when 16 decks suddenly disappeared. I don't know how to reproduce this bug, but I can provide more details about the situation if that helps.

Expected behavior

All 18 deck should be visible

Screenshots

1 2

OS of your device

Ubuntu 24.04 LTS

Obsidian version

1.6.5

Plugin version

1.12.4

Installer version

No response

Additional context

No response

Config file

data.json

ronzulu commented 4 months ago

Hi @AstolfoOnTheMoon can you please also post a markdown file that contains a card that doesn't show in the flashcard review tree

Please attach file (don't copy/paste)

AstolfoOnTheMoon commented 4 months ago

1)Funzioni.md

ronzulu commented 4 months ago

There might be other solutions, but as a test please move #Ingegneria #Analisi #A1F #I11A to prior to the first question.

AstolfoOnTheMoon commented 4 months ago

wich order?

ronzulu commented 4 months ago

The important aspect is that the flashcard tag is prior to the first question.

so if #A1Fis the flashcard tag for the questions in the file, that needs to be prior to the first question.

AstolfoOnTheMoon commented 4 months ago

it doesn't work either... The point is: when i created all of these they worked, but few days ago 16 deck suddenly disappeared...

AstolfoOnTheMoon commented 4 months ago

1.md For example this one works

ronzulu commented 4 months ago

The reason for the suggestion was that at some point the behavior changed regarding how tags that are located after the questions are treated. That was necessary when new functionality was implemented.

AstolfoOnTheMoon commented 4 months ago

So what I have to do?

ronzulu commented 4 months ago

Through trial and error the issue is being caused by the --- in:

---
## References:

## Keywords:
#Ingegneria #Analisi #A1F #I11A

I don't know why this has happened. A workaround is to change it to 4 minus signs, which also renders as a horizontal line.

AstolfoOnTheMoon commented 4 months ago

So I have to replace "---" with "----"?

ronzulu commented 4 months ago

Any solution that removes the --- will work. I suggested 4 minus signs because it would render in the same way.

If you automate the change, be careful if you use frontmatter in your files... don't change the --- that delimit the frontmatter section at the start of the file.

AstolfoOnTheMoon commented 4 months ago

1.md For example this one works

But why this works? This one has 3 minus signs and not 4

ronzulu commented 4 months ago

Thanks for the observation. It might be a clue that assists when someone from the community fixes the underlying problem.

ronzulu commented 4 months ago

Hi @AstolfoOnTheMoon, actually @4Source has fixed this issue (not part of the latest mainstream release).

It is now available as part of the beta release. If you wish, you can try it as described in https://github.com/st3v3nmw/obsidian-spaced-repetition/discussions/1011