reuseman / flashcards-obsidian

šŸŽ“ An Anki plugin for Obsidian.md
MIT License
870 stars 86 forks source link

Multiple ==cloze== all same cloze {{c1::cloze}} #118

Open Seedling12 opened 1 year ago

Seedling12 commented 1 year ago

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

Describe the bug I want to use the highlight function to make multiple cloze deletions in one card. When I do, all the cloze delections are the same cloze, c1.

To Reproduce

Expected behavior Anki: {{c1:: A}} {{c2:: B}} {{c3:: C}} {{c4:: D}} {{c1:: E}} {{c2:: F}} {{c3:: G}} {{c4:: H}}

Screenshots My Note:

image

Anki card with curly:

image

Anki card with ==:

image

Markdown used

---
cards-deck: Test
---
{1: A} {2: B} {3: C} {4: D}
==E== ==F== ==G== ==H==

Additional context Could anki addons be a problem?

github-actions[bot] commented 1 year ago

Thank you for taking the time to report the issue and help me to make the project better! šŸ™‚

cnicolai commented 1 year ago

Iā€˜m not sure this is a bug, maybe it is just a design decision? I personally would however also really like to see different highlights being assigned to different cloze deletions.

putzwasser commented 1 year ago

I'd say it's not a bug, but a feature. If you wanted to create a cloze deletion flash card with more than one cloze you always had to use

This is my {1:first} cloze of {1:multiple} clozes

instead of

This is my ==first== cloze of ==multiple== clozes

Might be worth thinking about using a config setting here, if multiple == should either be treated as the same or different clozes.