reuseman / flashcards-obsidian

🎴 An Anki plugin for Obsidian.md
MIT License
872 stars 86 forks source link

Various Issues with Cloze-Format #81

Closed Weyaaron closed 2 years ago

Weyaaron commented 2 years ago

NOTE: Do you have the last version of the plugin? If not that's probably the problem

I just made sure I use the last version, since there have been recent changes. I am on 1.6.1.

Describe the bug Various pieces of the cloze-support are broken:

To Reproduce

Expected behavior That the plugin adds 4 cards with functioning clozes.

Screenshots First Card generated: image

Second Card generated: image

View on the side of Obsidian: image

Additional context This broke a on a lot of cards and I tried some debugging on my own, including:

I will gladly help with further questions :)

github-actions[bot] commented 2 years ago

Thank you for taking the time to report the issue and help me to make the project better! 🙂

reuseman commented 2 years ago

Hey @Weyaaron. Why are you using the #card tag if you want a cloze one? Use this approach:

---
cards-deck: Test
---
{1: A} {2: B} {3: C} {4: D}
Weyaaron commented 2 years ago

Ah, I see. This is the obvious solution, never mind the issues. Maybe there is room for improvement on the documentation such that the documentation warns about this mistake?

reuseman commented 2 years ago

Honestly, I would really love to maintain it as simple as possible. Right now, the goal is that people can just copy a simple snippet and paste it to have what they want to achieve. But if we add all the possible gotchas, then it will be extremely huge. What would you change in the documentation specifically?

Weyaaron commented 2 years ago

Thats a good point. Since this issue is public, a person that will open a new issue will probably stumble over this issue first anyway, so this issue serves as a documentation as well. I retract my point, thanks for the quick help, I appreciate it!